Skip to content

Commit

Permalink
Add missing const's
Browse files Browse the repository at this point in the history
  • Loading branch information
Éric Lemoine authored and mbernasocchi committed Jul 25, 2019
1 parent b310dd6 commit c51187a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/qgsmapsettings.cpp
Expand Up @@ -92,7 +92,7 @@ double QgsMapSettings::extentBuffer() const
return mExtentBuffer;
}

void QgsMapSettings::setExtentBuffer( double buffer )
void QgsMapSettings::setExtentBuffer( const double buffer )
{
mExtentBuffer = buffer;
}
Expand Down
4 changes: 2 additions & 2 deletions src/server/services/wms/qgswmsrendercontext.cpp
Expand Up @@ -649,12 +649,12 @@ bool QgsWmsRenderContext::isValidWidthHeight() const
return true;
}

double QgsWmsRenderContext::mapTileBuffer( int mapWidth ) const
double QgsWmsRenderContext::mapTileBuffer( const int mapWidth ) const
{
double buffer;
if ( mFlags & UseTileBuffer )
{
QgsRectangle extent = mParameters.bboxAsRectangle();
const QgsRectangle extent = mParameters.bboxAsRectangle();
if ( !mParameters.bbox().isEmpty() && extent.isEmpty() )
{
throw QgsBadRequestException( QgsServiceException::QGIS_InvalidParameterValue,
Expand Down

0 comments on commit c51187a

Please sign in to comment.