Skip to content
Permalink
Browse files

Fix clazy QFileInfo::exists warnings

  • Loading branch information
nyalldawson committed Feb 2, 2018
1 parent 5b470aa commit b2b500d5b2af6352064214aafde524410eeca967
@@ -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.
You can’t perform that action at this time.