Skip to content
Permalink
Browse files

Silence some Coverity unchecked return value warnings

  • Loading branch information
nyalldawson committed Jun 1, 2017
1 parent 742a129 commit 19f0b39c95b93721ba1eabbcc6638aaecd82955b
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/server/services/wms/qgslayerrestorer.cpp
  2. +1 −1 src/server/services/wms/qgswmsrenderer.cpp
@@ -47,7 +47,7 @@ QgsLayerRestorer::QgsLayerRestorer( const QList<QgsMapLayer *> &layers )
QString errMsg;
QDomDocument sldDoc;
layer->exportSldStyle( sldDoc, errMsg );
settings.mSldStyle.setContent( sldDoc.toString(), true ); // for namespace processing
( void )settings.mSldStyle.setContent( sldDoc.toString(), true ); // for namespace processing

if ( layer->type() == QgsMapLayer::LayerType::VectorLayer )
{
@@ -2967,7 +2967,7 @@ namespace QgsWms
if ( !sld.isEmpty() )
{
QDomDocument doc;
doc.setContent( sld, true );
( void )doc.setContent( sld, true );
QDomElement docEl = doc.documentElement();

QDomElement root = doc.firstChildElement( "StyledLayerDescriptor" );

0 comments on commit 19f0b39

Please sign in to comment.
You can’t perform that action at this time.