Skip to content

Commit

Permalink
Fix for const iterator
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8153 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Feb 13, 2008
1 parent 75ab40a commit 5eb24c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/core/conversions.sip
Expand Up @@ -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) {
Expand Down

0 comments on commit 5eb24c4

Please sign in to comment.