Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix coverity warnings
  • Loading branch information
jef-n committed Apr 12, 2015
1 parent dfda3fb commit 9ba490a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/qgslabelpropertydialog.cpp
Expand Up @@ -199,7 +199,7 @@ void QgsLabelPropertyDialog::blockElementSignals( bool block )
mRotationSpinBox->blockSignals( block );
}

void QgsLabelPropertyDialog::setDataDefinedValues( QgsPalLayerSettings layerSettings, QgsVectorLayer* vlayer )
void QgsLabelPropertyDialog::setDataDefinedValues( const QgsPalLayerSettings &layerSettings, QgsVectorLayer* vlayer )
{
//loop through data defined properties and set all the GUI widget values. We can do this
//even if the data defined property is set to an expression, as it's useful to show
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgslabelpropertydialog.h
Expand Up @@ -73,7 +73,7 @@ class APP_EXPORT QgsLabelPropertyDialog: public QDialog, private Ui::QgsLabelPro
/**Block / unblock all input element signals*/
void blockElementSignals( bool block );

void setDataDefinedValues( QgsPalLayerSettings layerSettings, QgsVectorLayer* vlayer );
void setDataDefinedValues( const QgsPalLayerSettings &layerSettings, QgsVectorLayer* vlayer );
void enableDataDefinedWidgets( QgsVectorLayer* vlayer );

/** Updates font when family or style is updated */
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/grass/qgsgrassnewmapset.cpp
Expand Up @@ -1263,7 +1263,7 @@ void QgsGrassNewMapset::createMapset()

// TODO: add QgsGrass::setLocation or G_make_location with
// database path
QgsGrass::activeMode(); // because it calls private QgsGrass::init()
( void )QgsGrass::activeMode(); // because it calls private QgsGrass::init()

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

0 comments on commit 9ba490a

Please sign in to comment.