Skip to content

Commit

Permalink
const fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jul 8, 2016
1 parent 5a03383 commit b1de246
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions python/gui/qgsmaplayerconfigwidgetfactory.sip
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class QgsMapLayerConfigWidgetFactory
*/
virtual QIcon icon() const;

void setIcon(QIcon icon);
void setIcon(const QIcon& icon);

/**
* @brief The title of the panel.
Expand All @@ -34,7 +34,7 @@ class QgsMapLayerConfigWidgetFactory
*/
virtual QString title() const;

void setTitlte(QString title);
void setTitle(const QString title);

virtual bool supportsStyleDock() const;

Expand Down
2 changes: 1 addition & 1 deletion src/app/qgslayerstylingwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ bool QgsMapLayerStyleCommand::mergeWith( const QUndoCommand* other )
QgsLayerStyleManagerWidgetFactory::QgsLayerStyleManagerWidgetFactory()
{
setIcon( QgsApplication::getThemeIcon( "propertyicons/stylepreset.svg" ) );
setTitlte( QObject::tr( "Style Manager" ) );
setTitle( QObject::tr( "Style Manager" ) );
}

QgsMapLayerConfigWidget *QgsLayerStyleManagerWidgetFactory::createWidget( QgsMapLayer *layer, QgsMapCanvas *canvas, bool dockMode, QWidget *parent ) const
Expand Down
4 changes: 2 additions & 2 deletions src/gui/qgsmaplayerconfigwidgetfactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class GUI_EXPORT QgsMapLayerConfigWidgetFactory
* Set the icon for the factory object.
* @param icon The icon to show in the interface.
*/
void setIcon( QIcon icon ) { mIcon = icon; }
void setIcon( const QIcon& icon ) { mIcon = icon; }

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

/**
* Flag if widget is supported for use in style dock.
Expand Down

0 comments on commit b1de246

Please sign in to comment.