Skip to content

Commit

Permalink
Avoid Coverity warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 15, 2016
1 parent 91f3005 commit df27c07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgslayerdefinition.cpp
Expand Up @@ -305,8 +305,8 @@ QgsLayerDefinition::DependencySorter::DependencySorter( const QString& fileName
{
QDomDocument doc;
QFile pFile( fileName );
pFile.open( QIODevice::ReadOnly );
doc.setContent( &pFile );
( void )pFile.open( QIODevice::ReadOnly );
( void )doc.setContent( &pFile );
init( doc );
}

Expand Down

0 comments on commit df27c07

Please sign in to comment.