Skip to content

Commit

Permalink
Fix clazy QFileInfo::exists warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 2, 2018
1 parent 5b470aa commit b2b500d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmfiledownloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ QVariantMap QgsFileDownloaderAlgorithm::processAlgorithm( const QVariantMap &par
loop.exec();

timer.stop();
bool exists = QFileInfo( outputFile ).exists();
bool exists = QFileInfo::exists( outputFile );
if ( !feedback->isCanceled() && !exists )
throw QgsProcessingException( tr( "Output file doesn't exist." ) );

Expand Down
2 changes: 1 addition & 1 deletion tests/src/gui/testqgsfiledownloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ void TestQgsFileDownloader::testLacksWritePermissionsError()
QVERIFY( !mCompleted );
QVERIFY( mError );
QVERIFY( !mCanceled );
QVERIFY( ! QFileInfo( fileName ).exists( ) );
QVERIFY( ! QFileInfo::exists( fileName ) );
}


Expand Down

0 comments on commit b2b500d

Please sign in to comment.