Skip to content

Commit

Permalink
Resolve the 'return a temp variable' example given in ticket #17
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5228 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Apr 8, 2006
1 parent 3d9fca4 commit 9319ebc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/qgsfeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ QString const & QgsFeature::wellKnownText() const
}
else
{
return QString::null; // TODO: Test for mGeometry in all functions of this class
static QString emptyString("");
return emptyString; // TODO: Test for mGeometry in all functions of this class
}
/*
if(mWKT.isNull())
Expand Down

0 comments on commit 9319ebc

Please sign in to comment.