Skip to content

Commit b1de246

Browse files
committedJul 8, 2016
const fixes
1 parent 5a03383 commit b1de246

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎python/gui/qgsmaplayerconfigwidgetfactory.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class QgsMapLayerConfigWidgetFactory
2525
*/
2626
virtual QIcon icon() const;
2727

28-
void setIcon(QIcon icon);
28+
void setIcon(const QIcon& icon);
2929

3030
/**
3131
* @brief The title of the panel.
@@ -34,7 +34,7 @@ class QgsMapLayerConfigWidgetFactory
3434
*/
3535
virtual QString title() const;
3636

37-
void setTitlte(QString title);
37+
void setTitle(const QString title);
3838

3939
virtual bool supportsStyleDock() const;
4040

‎src/app/qgslayerstylingwidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ bool QgsMapLayerStyleCommand::mergeWith( const QUndoCommand* other )
508508
QgsLayerStyleManagerWidgetFactory::QgsLayerStyleManagerWidgetFactory()
509509
{
510510
setIcon( QgsApplication::getThemeIcon( "propertyicons/stylepreset.svg" ) );
511-
setTitlte( QObject::tr( "Style Manager" ) );
511+
setTitle( QObject::tr( "Style Manager" ) );
512512
}
513513

514514
QgsMapLayerConfigWidget *QgsLayerStyleManagerWidgetFactory::createWidget( QgsMapLayer *layer, QgsMapCanvas *canvas, bool dockMode, QWidget *parent ) const

‎src/gui/qgsmaplayerconfigwidgetfactory.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class GUI_EXPORT QgsMapLayerConfigWidgetFactory
4848
* Set the icon for the factory object.
4949
* @param icon The icon to show in the interface.
5050
*/
51-
void setIcon( QIcon icon ) { mIcon = icon; }
51+
void setIcon( const QIcon& icon ) { mIcon = icon; }
5252

5353
/**
5454
* @brief The title of the panel.
@@ -63,7 +63,7 @@ class GUI_EXPORT QgsMapLayerConfigWidgetFactory
6363
* e.g style dock uses this as a tooltip.
6464
* @param title The title to set.
6565
*/
66-
void setTitlte( QString title ) { mTitle = title; }
66+
void setTitle( const QString& title ) { mTitle = title; }
6767

6868
/**
6969
* Flag if widget is supported for use in style dock.

0 commit comments

Comments
 (0)
Please sign in to comment.