Skip to content
Permalink
Browse files

Fix some warnings

  • Loading branch information
m-kuhn committed Sep 17, 2015
1 parent 42e8693 commit 15021ef62f07583de355fa67d3036a4171d12b35
@@ -969,6 +969,7 @@ QStringList QgsGrassModuleInput::currentGeometryTypeNames()

void QgsGrassModuleInput::onChanged( const QString & text )
{
Q_UNUSED( text ) // silence warning
QgsDebugMsg( "text = " + text );

if ( multiple() )
@@ -634,7 +634,6 @@ CompactHistoryLine::CompactHistoryLine ( const TextLine& line, CompactHistoryBlo
Q_ASSERT (text!=NULL);

length=line.size();
//formatLength=formatLength;
wrapped=false;

// record formats and their positions in the format array
@@ -249,6 +249,7 @@ bool QgsGrassFeatureIterator::fetchFeature( QgsFeature& feature )
int lid = 0;
QgsFeatureId featureId = 0;

#ifdef QGISDEBUG
if ( mSource->mEditing )
{
QgsDebugMsg( "newLids:" );
@@ -257,6 +258,7 @@ bool QgsGrassFeatureIterator::fetchFeature( QgsFeature& feature )
QgsDebugMsg( QString( "%1 -> %2" ).arg( oldLid ).arg( mSource->mLayer->map()->newLids().value( oldLid ) ) );
}
}
#endif

if ( filterById )
{
@@ -185,7 +185,9 @@ bool QgsGrassRasterImport::import()
}

QGis::DataType qgis_out_type = QGis::UnknownDataType;
#ifdef QGISDEBUG
RASTER_MAP_TYPE data_type = -1;
#endif
switch ( provider->dataType( band ) )
{
case QGis::Byte:
@@ -1337,6 +1337,7 @@ void QgsGrassProvider::bufferGeometryChanged( QgsFeatureId fid, QgsGeometry &geo

void QgsGrassProvider::onUndoIndexChanged( int index )
{
Q_UNUSED( index )
QgsDebugMsg( QString( "index = %1" ).arg( index ) );
}

@@ -121,8 +121,10 @@ void QgsGrassVectorMapLayer::load()
}
else
{
#ifdef QGISDEBUG
int nRecords = db_get_num_rows( &databaseCursor );
QgsDebugMsg( QString( "Number of records: %1" ).arg( nRecords ) );
#endif

dbTable *databaseTable = db_get_cursor_table( &databaseCursor );
int nColumns = db_get_table_number_of_columns( databaseTable );

0 comments on commit 15021ef

Please sign in to comment.
You can’t perform that action at this time.