Skip to content

Commit 6a7570f

Browse files
author
g_j_m
committedApr 8, 2006
Resolve the 'return a temp variable' example given in ticket #17
git-svn-id: http://svn.osgeo.org/qgis/trunk@5228 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4e06c28 commit 6a7570f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/core/qgsfeature.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,8 @@ QString const & QgsFeature::wellKnownText() const
377377
}
378378
else
379379
{
380-
return QString::null; // TODO: Test for mGeometry in all functions of this class
380+
static QString emptyString("");
381+
return emptyString; // TODO: Test for mGeometry in all functions of this class
381382
}
382383
/*
383384
if(mWKT.isNull())

0 commit comments

Comments
 (0)
Please sign in to comment.