Skip to content

Commit

Permalink
[SIP] Change all occurences of convert[From|To]Instance to convert[Fr…
Browse files Browse the repository at this point in the history
…om|To]Type

Removal of these deprecated calls is expected to improve stability
  • Loading branch information
m-kuhn committed Aug 13, 2013
1 parent db07f2f commit d1768b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/core/conversions.sip
Expand Up @@ -1017,7 +1017,7 @@ template<TYPE1, TYPE2>
if (!sipCanConvertToType(t1obj, sipType_TYPE1, SIP_NOT_NONE))
return 0;

if (!sipCanConvertToInstance(t2obj, sipClass_TYPE2, SIP_NOT_NONE))
if (!sipCanConvertToType(t2obj, sipType_TYPE2, SIP_NOT_NONE))
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion python/core/qgsfeatureiterator.sip
Expand Up @@ -41,7 +41,7 @@ public:
%MethodCode
QgsFeature* f = new QgsFeature;
if (sipCpp->nextFeature(*f))
sipRes = sipConvertFromInstance(f, sipClass_QgsFeature, Py_None);
sipRes = sipConvertFromType(f, sipType_QgsFeature, Py_None);
else
{
delete f;
Expand Down
2 changes: 1 addition & 1 deletion python/core/qgsfield.sip
Expand Up @@ -168,7 +168,7 @@ class QgsFields
{
qDebug("__getitem__ %d", a0);
QgsField* fld = new QgsField(sipCpp->at(a0));
sipRes = sipConvertFromInstance(fld, sipClass_QgsField, Py_None);
sipRes = sipConvertFromType(fld, sipType_QgsField, Py_None);
}
%End*/

Expand Down

0 comments on commit d1768b8

Please sign in to comment.