Skip to content

Commit 9ba490a

Browse files
committedApr 12, 2015
fix coverity warnings
1 parent dfda3fb commit 9ba490a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎src/app/qgslabelpropertydialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ void QgsLabelPropertyDialog::blockElementSignals( bool block )
199199
mRotationSpinBox->blockSignals( block );
200200
}
201201

202-
void QgsLabelPropertyDialog::setDataDefinedValues( QgsPalLayerSettings layerSettings, QgsVectorLayer* vlayer )
202+
void QgsLabelPropertyDialog::setDataDefinedValues( const QgsPalLayerSettings &layerSettings, QgsVectorLayer* vlayer )
203203
{
204204
//loop through data defined properties and set all the GUI widget values. We can do this
205205
//even if the data defined property is set to an expression, as it's useful to show

‎src/app/qgslabelpropertydialog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class APP_EXPORT QgsLabelPropertyDialog: public QDialog, private Ui::QgsLabelPro
7373
/**Block / unblock all input element signals*/
7474
void blockElementSignals( bool block );
7575

76-
void setDataDefinedValues( QgsPalLayerSettings layerSettings, QgsVectorLayer* vlayer );
76+
void setDataDefinedValues( const QgsPalLayerSettings &layerSettings, QgsVectorLayer* vlayer );
7777
void enableDataDefinedWidgets( QgsVectorLayer* vlayer );
7878

7979
/** Updates font when family or style is updated */

‎src/plugins/grass/qgsgrassnewmapset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ void QgsGrassNewMapset::createMapset()
12631263

12641264
// TODO: add QgsGrass::setLocation or G_make_location with
12651265
// database path
1266-
QgsGrass::activeMode(); // because it calls private QgsGrass::init()
1266+
( void )QgsGrass::activeMode(); // because it calls private QgsGrass::init()
12671267

12681268
#if defined(WIN32)
12691269
G__setenv(( char * ) "GISDBASE", QgsGrass::shortPath( mDatabaseLineEdit->text() ).toUtf8().data() );

0 commit comments

Comments
 (0)
Please sign in to comment.