Skip to content

Commit e3b0e64

Browse files
author
wonder
committedFeb 13, 2008
Fix for const iterator
git-svn-id: http://svn.osgeo.org/qgis/trunk@8153 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ac6a38a commit e3b0e64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎python/core/conversions.sip

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,13 +534,13 @@ template<double, TYPE2>
534534
return NULL;
535535

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

539-
while (i != sipCpp->constEnd())
539+
while (i != sipCpp->end())
540540
{
541541

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

0 commit comments

Comments
 (0)
Please sign in to comment.