# HG changeset patch # User Teemu Piippo # Date 1531504135 -10800 # Node ID b7ba2af33c13e710dc834acde439e65946516c2a # Parent e5a2ddfe2ba52e5ac0eccc6bf57f78c8f19687a2 add const diff -r e5a2ddfe2ba5 -r b7ba2af33c13 src/glcompiler.cpp --- a/src/glcompiler.cpp Fri Jul 13 20:47:35 2018 +0300 +++ b/src/glcompiler.cpp Fri Jul 13 20:48:55 2018 +0300 @@ -144,7 +144,7 @@ * - subclass provides context for the polygon. */ QColor GLCompiler::getColorForPolygon( - LDPolygon& polygon, + const LDPolygon& polygon, const QModelIndex& polygonOwnerIndex, VboSubclass subclass ) { diff -r e5a2ddfe2ba5 -r b7ba2af33c13 src/glcompiler.h --- a/src/glcompiler.h Fri Jul 13 20:47:35 2018 +0300 +++ b/src/glcompiler.h Fri Jul 13 20:48:55 2018 +0300 @@ -61,7 +61,7 @@ void compileStaged(); void compilePolygon(LDPolygon& poly, const QModelIndex& polygonOwnerIndex, ObjectVboData& objectInfo); Q_SLOT void compileObject(const QModelIndex &index); - QColor getColorForPolygon(LDPolygon& poly, const QModelIndex& polygonOwnerIndex, VboSubclass complement); + QColor getColorForPolygon(const LDPolygon& polygon, const QModelIndex& polygonOwnerIndex, VboSubclass complement); QColor indexColorForID (qint32 id) const; void needMerge(); Q_SLOT void recompile();