mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Fix for const iterator
git-svn-id: http://svn.osgeo.org/qgis/trunk@8153 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
ac6a38a22a
commit
e3b0e64d64
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user