Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix some warnings
  • Loading branch information
m-kuhn committed Sep 17, 2015
1 parent 42e8693 commit 15021ef
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/plugins/grass/qgsgrassmoduleinput.cpp
Expand Up @@ -969,6 +969,7 @@ QStringList QgsGrassModuleInput::currentGeometryTypeNames()

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

if ( multiple() )
Expand Down
1 change: 0 additions & 1 deletion src/plugins/grass/qtermwidget/History.cpp
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/providers/grass/qgsgrassfeatureiterator.cpp
Expand Up @@ -249,6 +249,7 @@ bool QgsGrassFeatureIterator::fetchFeature( QgsFeature& feature )
int lid = 0;
QgsFeatureId featureId = 0;

#ifdef QGISDEBUG
if ( mSource->mEditing )
{
QgsDebugMsg( "newLids:" );
Expand All @@ -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 )
{
Expand Down
2 changes: 2 additions & 0 deletions src/providers/grass/qgsgrassimport.cpp
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions src/providers/grass/qgsgrassprovider.cpp
Expand Up @@ -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 ) );
}

Expand Down
2 changes: 2 additions & 0 deletions src/providers/grass/qgsgrassvectormaplayer.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 15021ef

Please sign in to comment.