Skip to content
Permalink
Browse files

Fix for const iterator

git-svn-id: http://svn.osgeo.org/qgis/trunk@8153 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Feb 13, 2008
1 parent ac6a38a commit e3b0e64d64857c3268ad6b7d420296180d157ca8
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/core/conversions.sip
@@ -534,13 +534,13 @@ template<double, TYPE2>
return NULL;

// Set the dictionary elements.
QMultiMap<double, TYPE2>::const_iterator i = sipCpp->constBegin();
QMultiMap<double, TYPE2>::iterator i = sipCpp->begin();

while (i != sipCpp->constEnd())
while (i != sipCpp->end())
{

const double t1 = i.key();
const TYPE2 * t2 = &i.value();
TYPE2 * t2 = &i.value();
PyObject *t1obj = PyFloat_FromDouble(t1);
PyObject *t2obj = sipConvertFromInstance(t2, sipClass_TYPE2, sipTransferObj);
if (PyDict_GetItem(d, t1obj) == NULL) {

0 comments on commit e3b0e64

Please sign in to comment.
You can’t perform that action at this time.