diff --git a/python/core/conversions.sip b/python/core/conversions.sip index bc817043007a..14fe2c97135a 100644 --- a/python/core/conversions.sip +++ b/python/core/conversions.sip @@ -534,13 +534,13 @@ template return NULL; // Set the dictionary elements. - QMultiMap::const_iterator i = sipCpp->constBegin(); + QMultiMap::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) {