Skip to content
Permalink
Browse files
Fix clazy QFileInfo::exists warnings
  • 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.
@@ -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." ) );

@@ -250,7 +250,7 @@ void TestQgsFileDownloader::testLacksWritePermissionsError()
QVERIFY( !mCompleted );
QVERIFY( mError );
QVERIFY( !mCanceled );
QVERIFY( ! QFileInfo( fileName ).exists( ) );
QVERIFY( ! QFileInfo::exists( fileName ) );
}


0 comments on commit b2b500d

Please sign in to comment.