[QGIS Commit] r8153 - trunk/qgis/python/core
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Wed Feb 13 05:45:49 EST 2008
Author: wonder
Date: 2008-02-13 05:45:49 -0500 (Wed, 13 Feb 2008)
New Revision: 8153
Modified:
trunk/qgis/python/core/conversions.sip
Log:
Fix for const iterator
Modified: trunk/qgis/python/core/conversions.sip
===================================================================
--- trunk/qgis/python/core/conversions.sip 2008-02-13 10:08:07 UTC (rev 8152)
+++ trunk/qgis/python/core/conversions.sip 2008-02-13 10:45:49 UTC (rev 8153)
@@ -534,13 +534,13 @@
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) {
More information about the QGIS-commit
mailing list