Skip to content

Commit d1768b8

Browse files
committedAug 13, 2013
[SIP] Change all occurences of convert[From|To]Instance to convert[From|To]Type
Removal of these deprecated calls is expected to improve stability
1 parent db07f2f commit d1768b8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎python/core/conversions.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ template<TYPE1, TYPE2>
10171017
if (!sipCanConvertToType(t1obj, sipType_TYPE1, SIP_NOT_NONE))
10181018
return 0;
10191019

1020-
if (!sipCanConvertToInstance(t2obj, sipClass_TYPE2, SIP_NOT_NONE))
1020+
if (!sipCanConvertToType(t2obj, sipType_TYPE2, SIP_NOT_NONE))
10211021
return 0;
10221022
}
10231023

‎python/core/qgsfeatureiterator.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public:
4141
%MethodCode
4242
QgsFeature* f = new QgsFeature;
4343
if (sipCpp->nextFeature(*f))
44-
sipRes = sipConvertFromInstance(f, sipClass_QgsFeature, Py_None);
44+
sipRes = sipConvertFromType(f, sipType_QgsFeature, Py_None);
4545
else
4646
{
4747
delete f;

‎python/core/qgsfield.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class QgsFields
168168
{
169169
qDebug("__getitem__ %d", a0);
170170
QgsField* fld = new QgsField(sipCpp->at(a0));
171-
sipRes = sipConvertFromInstance(fld, sipClass_QgsField, Py_None);
171+
sipRes = sipConvertFromType(fld, sipType_QgsField, Py_None);
172172
}
173173
%End*/
174174

0 commit comments

Comments
 (0)
Please sign in to comment.