Skip to content

Commit

Permalink
Removing compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrook committed Sep 20, 2014
1 parent 47f7db5 commit e0b9afb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@ bool QgsGraduatedSymbolRendererV2::updateRangeRenderState( int rangeIndex, bool

QString QgsGraduatedSymbolRendererV2::defaultRangeLabel(const QgsRendererRangeV2 & range )
{
int ndp=mDecimalPlaces;
return QString::number( range.lowerValue(), 'f', mDecimalPlaces )
+ " - " + QString::number( range.upperValue(), 'f', mDecimalPlaces ) + mUnits;
}
Expand Down
6 changes: 3 additions & 3 deletions src/core/symbology-ng/qgsgraduatedsymbolrendererv2.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class CORE_EXPORT QgsGraduatedSymbolRendererV2 : public QgsFeatureRendererV2
QString units() const { return mUnits; }
void setUnits( QString units, bool updateRanges=true );

int decimalPlaces() const { return mDecimalPlaces; };
int decimalPlaces() const { return mDecimalPlaces; }
void setDecimalPlaces( int decimalPlaces, bool updateRanges=true );

static QgsGraduatedSymbolRendererV2* createRenderer(
Expand Down Expand Up @@ -218,13 +218,13 @@ class CORE_EXPORT QgsGraduatedSymbolRendererV2 : public QgsFeatureRendererV2

protected:
QString mAttrName;
QString mUnits;
int mDecimalPlaces;
QgsRangeList mRanges;
Mode mMode;
QScopedPointer<QgsSymbolV2> mSourceSymbol;
QScopedPointer<QgsVectorColorRampV2> mSourceColorRamp;
bool mInvertedColorRamp;
QString mUnits;
int mDecimalPlaces;
QScopedPointer<QgsExpression> mRotation;
QScopedPointer<QgsExpression> mSizeScale;
QgsSymbolV2::ScaleMethod mScaleMethod;
Expand Down

0 comments on commit e0b9afb

Please sign in to comment.