mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fix warnings
This commit is contained in:
parent
d62cf513e1
commit
017fa24bd4
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user