Skip to content

Commit

Permalink
Fix const, followup 6a2df33
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 5, 2015
1 parent df4c131 commit 504863b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/core/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2753,11 +2753,6 @@ void QgsVectorLayer::setLabelOnTop( int idx, bool onTop )
mLabelOnTop[ mUpdatedFields[idx].name()] = onTop;
}

QgsFeatureRendererV2* QgsVectorLayer::rendererV2() const
{
return mRendererV2;
}

void QgsVectorLayer::setRendererV2( QgsFeatureRendererV2 *r )
{
if ( !hasGeometryType() )
Expand Down
6 changes: 5 additions & 1 deletion src/core/qgsvectorlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,11 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
const QgsDiagramLayerSettings *diagramLayerSettings() const { return mDiagramLayerSettings; }

/** Return renderer V2. */
QgsFeatureRendererV2* rendererV2() const;
QgsFeatureRendererV2* rendererV2() { return mRendererV2; }

/** Return const renderer V2. */
const QgsFeatureRendererV2* rendererV2() const { return mRendererV2; }

/** Set renderer V2. */
void setRendererV2( QgsFeatureRendererV2* r );

Expand Down

0 comments on commit 504863b

Please sign in to comment.