Skip to content
Permalink
Browse files

Do not const-antly forget about grass

  • Loading branch information
m-kuhn committed Apr 18, 2018
1 parent 85719e8 commit f2de572390da6b8db042743348d5b81efffdd764
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/plugins/grass/qgsgrasseditrenderer.cpp
  2. +2 −2 src/plugins/grass/qgsgrasseditrenderer.h
@@ -118,7 +118,7 @@ void QgsGrassEditRenderer::setMarkerRenderer( QgsFeatureRenderer *renderer )
mMarkerRenderer = renderer;
}

QgsSymbol *QgsGrassEditRenderer::symbolForFeature( QgsFeature &feature, QgsRenderContext &context )
QgsSymbol *QgsGrassEditRenderer::symbolForFeature( const QgsFeature &feature, QgsRenderContext &context ) const
{
int symbolCode = feature.attribute( QStringLiteral( "topo_symbol" ) ).toInt();
QgsDebugMsgLevel( QString( "fid = %1 symbolCode = %2" ).arg( feature.id() ).arg( symbolCode ), 3 );
@@ -190,7 +190,7 @@ QgsFeatureRenderer *QgsGrassEditRenderer::clone() const
return r;
}

QgsSymbolList QgsGrassEditRenderer::symbols( QgsRenderContext &context )
QgsSymbolList QgsGrassEditRenderer::symbols( QgsRenderContext &context ) const
{
return mLineRenderer->symbols( context );
}
@@ -32,7 +32,7 @@ class QgsGrassEditRenderer : public QgsFeatureRenderer

~QgsGrassEditRenderer() override;

QgsSymbol *symbolForFeature( QgsFeature &feature, QgsRenderContext &context ) override;
QgsSymbol *symbolForFeature( const QgsFeature &feature, QgsRenderContext &context ) const override;

void startRender( QgsRenderContext &context, const QgsFields &fields ) override;

@@ -42,7 +42,7 @@ class QgsGrassEditRenderer : public QgsFeatureRenderer

QgsFeatureRenderer *clone() const override;

QgsSymbolList symbols( QgsRenderContext &context ) override;
QgsSymbolList symbols( QgsRenderContext &context ) const override;

QString dump() const override;

0 comments on commit f2de572

Please sign in to comment.
You can’t perform that action at this time.