Skip to content

Commit

Permalink
Avoid some Coverity return value warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 26, 2016
1 parent 989ec2c commit 250f657
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/providers/wfs/qgswfsfeatureiterator.cpp
Expand Up @@ -202,7 +202,7 @@ QUrl QgsWFSFeatureDownloader::buildURL( int startIndex, int maxFeatures, bool fo
bboxNode = bboxElem.removeChild( bboxNode );

QDomDocument filterDoc;
filterDoc.setContent( mWFSFilter, true );
( void )filterDoc.setContent( mWFSFilter, true );
QDomNode filterNode = filterDoc.firstChildElement().firstChildElement();
filterNode = filterDoc.firstChildElement().removeChild( filterNode );

Expand Down
2 changes: 1 addition & 1 deletion src/providers/wfs/qgswfsshareddata.cpp
Expand Up @@ -334,7 +334,7 @@ bool QgsWFSSharedData::createCache()
if ( rc != SQLITE_OK )
ret = false;

sqlite3_exec( db, "COMMIT", nullptr, nullptr, nullptr );
( void )sqlite3_exec( db, "COMMIT", nullptr, nullptr, nullptr );

QgsSLConnect::sqlite3_close( db );
}
Expand Down

0 comments on commit 250f657

Please sign in to comment.