freebsd-ports/devel/clint/files/patch-lib-python-mapref.cc
Martin Wilke 9e988e2e8e - Fix build with gcc 4.2
PR:		117789
Submitted by:	Pietro Cerutti <gahr@gahr.ch>
Approved by:	portmgr (pav)
2007-11-05 10:04:20 +00:00

20 lines
668 B
C++

--- lib/python/mapref.cc.orig 2007-11-03 16:16:58.000000000 +0100
+++ lib/python/mapref.cc 2007-11-03 16:17:25.000000000 +0100
@@ -2,7 +2,7 @@
namespace python {
template <class T>
- mapref<T>::mapref<T> (MapBase<T>& map, const std::string& k)
+ mapref<T>::mapref (MapBase<T>& map, const std::string& k)
: s(map), the_item()
{
key = String(k);
@@ -10,7 +10,7 @@
};
template <class T>
- mapref<T>::mapref<T> (MapBase<T>& map, const Object& k)
+ mapref<T>::mapref (MapBase<T>& map, const Object& k)
: s(map), key(k), the_item()
{
if(map.hasKey(key)) the_item = map.getItem(key);