Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix some const-issues
  • Loading branch information
m-kuhn committed Sep 20, 2016
1 parent 5b57317 commit 41c7a95
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions python/core/qgsvectorlayer.sip
Expand Up @@ -191,7 +191,7 @@ class QgsVectorLayer : QgsMapLayer
void setDisplayField( const QString& fldName = "" );

/** Returns the primary display field name used in the identify results dialog */
const QString displayField() const;
QString displayField() const;

/** Set the preview expression, used to create a human readable preview string.
* Used e.g. in the attribute table feature list. Uses { @link QgsExpression }.
Expand All @@ -207,7 +207,7 @@ class QgsVectorLayer : QgsMapLayer
*
* @return The expression which will be used to preview features for this layer
*/
const QString displayExpression();
QString displayExpression() const;

/** Returns the data provider */
QgsVectorDataProvider* dataProvider();
Expand Down
4 changes: 2 additions & 2 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -2878,7 +2878,7 @@ void QgsVectorLayer::setCoordinateSystem()
}


const QString QgsVectorLayer::displayField() const
QString QgsVectorLayer::displayField() const
{
return mDisplayField;
}
Expand All @@ -2888,7 +2888,7 @@ void QgsVectorLayer::setDisplayExpression( const QString &displayExpression )
mDisplayExpression = displayExpression;
}

const QString QgsVectorLayer::displayExpression()
QString QgsVectorLayer::displayExpression() const
{
return mDisplayExpression;
}
Expand Down
4 changes: 2 additions & 2 deletions src/core/qgsvectorlayer.h
Expand Up @@ -556,7 +556,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
void setDisplayField( const QString& fldName = "" );

/** Returns the primary display field name used in the identify results dialog */
const QString displayField() const;
QString displayField() const;

/** Set the preview expression, used to create a human readable preview string.
* Used e.g. in the attribute table feature list. Uses { @link QgsExpression }.
Expand All @@ -572,7 +572,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
*
* @return The expression which will be used to preview features for this layer
*/
const QString displayExpression();
QString displayExpression() const;

/** Returns the data provider */
QgsVectorDataProvider* dataProvider();
Expand Down

0 comments on commit 41c7a95

Please sign in to comment.