Skip to content
Permalink
Browse files
fix warnings
  • Loading branch information
jef-n committed Oct 18, 2012
1 parent d62cf51 commit 017fa24
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
@@ -253,7 +253,7 @@ bool QgsRasterBlock::isNoDataValue( double value ) const

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

bool QgsRasterBlock::isNoData( size_t index )
{
if ( index < 0 || index >= ( size_t )mWidth*mHeight )
if ( index >= ( size_t )mWidth*mHeight )
{
QgsDebugMsg( QString( "Index %1 out of range (%2 x %3)" ).arg( index ).arg( mWidth ).arg( mHeight ) );
return true; // we consider no data if outside
@@ -964,9 +964,6 @@ QDomDocument QgsWFSServer::transaction( const QString& requestBody )
{
// Create feature for this layer
QgsFeature* f = new QgsFeature();
unsigned char* wkb = 0;
int wkbSize = 0;
QGis::WkbType currentType;

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

@@ -1261,7 +1261,6 @@ int QgsWFSProvider::getFeaturesFromGML2( const QDomElement& wfsCollectionElement
QgsFeature* f = 0;
unsigned char* wkb = 0;
int wkbSize = 0;
QGis::WkbType currentType;
mFeatureCount = 0;

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

0 comments on commit 017fa24

Please sign in to comment.