fix warnings

This commit is contained in:
Juergen E. Fischer 2012-10-18 20:38:41 +02:00
parent d62cf513e1
commit 017fa24bd4
3 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -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();

View File

@ -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 )