diff options
author | rillig <rillig@pkgsrc.org> | 2005-03-16 20:03:57 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-03-16 20:03:57 +0000 |
commit | 87e2476c2e0fded094f37adb45d8a44249c23c00 (patch) | |
tree | eff075328ee152d7d78819da993550339c627ebd /graphics/kphotools/patches/patch-ai | |
parent | 4df0162b05d22a7f33ce91fb5da42f6d8628b9f6 (diff) | |
download | pkgsrc-87e2476c2e0fded094f37adb45d8a44249c23c00.tar.gz |
Added workaround for missing std::vector.at() in libc++-2. Approved by wiz.
Diffstat (limited to 'graphics/kphotools/patches/patch-ai')
-rw-r--r-- | graphics/kphotools/patches/patch-ai | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/graphics/kphotools/patches/patch-ai b/graphics/kphotools/patches/patch-ai new file mode 100644 index 00000000000..0be27991d39 --- /dev/null +++ b/graphics/kphotools/patches/patch-ai @@ -0,0 +1,23 @@ +$NetBSD: patch-ai,v 1.1 2005/03/16 20:03:57 rillig Exp $ + +c++-2.95.3 does not know vector::at(). + +--- src/AlbumWid.ui.h.orig Thu Jun 3 20:53:22 2004 ++++ src/AlbumWid.ui.h Wed Mar 16 20:22:58 2005 +@@ -26,6 +26,7 @@ + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + ++#include <pkgsrc_fixes.h> + + void AlbumWid::init() + { +@@ -88,7 +89,7 @@ void AlbumWid::onRemoveAll() + //run through the vector and delete each item + for(uint i = 0;i<m_vecFileList.size();i++) + { +- delete m_vecFileList.at(i); ++ delete at_replacement(m_vecFileList, i); + } + //clear vector + m_vecFileList.clear(); |