Fix some windows build warnings

This commit is contained in:
Nyall Dawson 2018-11-04 17:41:09 +10:00
parent 5f2b78e755
commit efbc089a09
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ void QgsSnapToGridCanvasItem::updateZoomFactor()
else
mAvailableByZoomFactor = false;
}
catch ( QgsCsException &e )
catch ( QgsCsException & )
{
// transform errors?
// you've probably got worse problems than the grid with your digitizing operations in the current projection.

View File

@ -483,7 +483,7 @@ void QgsWmsProvider::setQueryItem( QUrl &url, const QString &item, const QString
{
url.removeQueryItem( item );
if ( value.isNull() )
url.addQueryItem( item, QStringLiteral( "" ) ); // skip-keyword-check
url.addQueryItem( item, "" );
else
url.addQueryItem( item, value );
}