Skip to content

Commit 017fa24

Browse files
committed
fix warnings
1 parent d62cf51 commit 017fa24

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

src/core/raster/qgsrasterblock.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ bool QgsRasterBlock::isNoDataValue( double value ) const
253253

254254
double QgsRasterBlock::value( size_t index ) const
255255
{
256-
if ( index < 0 || index >= ( size_t )mWidth*mHeight )
256+
if ( index >= ( size_t )mWidth*mHeight )
257257
{
258258
QgsDebugMsg( QString( "Index %1 out of range (%2 x %3)" ).arg( index ).arg( mWidth ).arg( mHeight ) );
259259
return mNoDataValue;
@@ -282,7 +282,7 @@ QRgb QgsRasterBlock::color( int row, int column ) const
282282

283283
bool QgsRasterBlock::isNoData( size_t index )
284284
{
285-
if ( index < 0 || index >= ( size_t )mWidth*mHeight )
285+
if ( index >= ( size_t )mWidth*mHeight )
286286
{
287287
QgsDebugMsg( QString( "Index %1 out of range (%2 x %3)" ).arg( index ).arg( mWidth ).arg( mHeight ) );
288288
return true; // we consider no data if outside

src/mapserver/qgswfsserver.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -964,9 +964,6 @@ QDomDocument QgsWFSServer::transaction( const QString& requestBody )
964964
{
965965
// Create feature for this layer
966966
QgsFeature* f = new QgsFeature();
967-
unsigned char* wkb = 0;
968-
int wkbSize = 0;
969-
QGis::WkbType currentType;
970967

971968
QDomElement featureElem = featNodes.at( l ).toElement();
972969

src/providers/wfs/qgswfsprovider.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,6 @@ int QgsWFSProvider::getFeaturesFromGML2( const QDomElement& wfsCollectionElement
12611261
QgsFeature* f = 0;
12621262
unsigned char* wkb = 0;
12631263
int wkbSize = 0;
1264-
QGis::WkbType currentType;
12651264
mFeatureCount = 0;
12661265

12671266
for ( int i = 0; i < featureTypeNodeList.size(); ++i )

0 commit comments

Comments
 (0)