Add missing const's

This commit is contained in:
Éric Lemoine 2019-06-18 15:47:44 +02:00
parent c4b1431e92
commit 93865e3315
2 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ double QgsMapSettings::extentBuffer() const
return mExtentBuffer;
}
void QgsMapSettings::setExtentBuffer( double buffer )
void QgsMapSettings::setExtentBuffer( const double buffer )
{
mExtentBuffer = buffer;
}

View File

@ -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,