Skip to content

Commit

Permalink
Const-correct QgsMapToPixel::showParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Santilli committed Dec 9, 2014
1 parent 87de9f5 commit a56ec98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/qgsmaptopixel.cpp
Expand Up @@ -229,7 +229,7 @@ void QgsMapToPixel::setParameters( double mapUnitsPerPixel,
updateMatrix();
}

QString QgsMapToPixel::showParameters()
QString QgsMapToPixel::showParameters() const
{
QString rep;
QTextStream( &rep ) << "Map units/pixel: " << mMapUnitsPerPixel
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsmaptopixel.h
Expand Up @@ -174,7 +174,7 @@ class CORE_EXPORT QgsMapToPixel
void setParameters( double mapUnitsPerPixel, double xc, double yc, int width, int height, double rotation );

//! String representation of the parameters used in the transform
QString showParameters();
QString showParameters() const;

private:
double mMapUnitsPerPixel;
Expand Down

0 comments on commit a56ec98

Please sign in to comment.