Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jun 11, 2013
1 parent 21aecd5 commit f8cafe8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/core/qgsfeature.sip
Expand Up @@ -121,15 +121,15 @@ class QgsFeature

if (fieldIdx >= 0)
{
QVariant& v = sipCpp->attribute(fieldIdx);
QVariant v = sipCpp->attribute(fieldIdx);
if ( v.isNull() )
sipRes = Py_None;
else
sipRes = sipConvertFromInstance( &v, sipClass_QVariant, Py_None );
}
else if( altfieldIdx >= 0 )
{
QVariant& v = sipCpp->attribute(altfieldIdx);
QVariant v = sipCpp->attribute(altfieldIdx);
if ( v.isNull() )
sipRes = Py_None;
else
Expand Down Expand Up @@ -218,7 +218,7 @@ class QgsFeature
}
else
{
QVariant& v = sipCpp->attribute(fieldIdx);
QVariant v = sipCpp->attribute(fieldIdx);
if ( v.isNull() )
sipRes = Py_None;
else
Expand Down Expand Up @@ -463,7 +463,7 @@ class QgsFeature
}
else
{
QVariant& v = sipCpp->attribute(fieldIdx);
QVariant v = sipCpp->attribute(fieldIdx);
if ( v.isNull() )
sipRes = Py_None;
else
Expand Down

0 comments on commit f8cafe8

Please sign in to comment.