[QGIS Commit] r14336 - trunk/qgis/src/mapserver
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Tue Oct 5 05:21:43 EDT 2010
Author: jef
Date: 2010-10-05 09:21:43 +0000 (Tue, 05 Oct 2010)
New Revision: 14336
Modified:
trunk/qgis/src/mapserver/qgsfilter.cpp
Log:
fix warning
Modified: trunk/qgis/src/mapserver/qgsfilter.cpp
===================================================================
--- trunk/qgis/src/mapserver/qgsfilter.cpp 2010-10-05 08:51:41 UTC (rev 14335)
+++ trunk/qgis/src/mapserver/qgsfilter.cpp 2010-10-05 09:21:43 UTC (rev 14336)
@@ -117,16 +117,17 @@
}
//get property index
- int attributeIndex;
+ int attributeIndex = -1;
if ( vl->dataProvider() )
{
attributeIndex = vl->dataProvider()->fieldNameIndex( attributeName );
- if ( attributeIndex == -1 )
- {
- return 0;
- }
}
+ if ( attributeIndex == -1 )
+ {
+ return 0;
+ }
+
//get literal value(s)
QStringList literalList;
More information about the QGIS-commit
mailing list