Skip to content

Commit b2b500d

Browse files
committed
Fix clazy QFileInfo::exists warnings
1 parent 5b470aa commit b2b500d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/analysis/processing/qgsalgorithmfiledownloader.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ QVariantMap QgsFileDownloaderAlgorithm::processAlgorithm( const QVariantMap &par
8888
loop.exec();
8989

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

tests/src/gui/testqgsfiledownloader.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ void TestQgsFileDownloader::testLacksWritePermissionsError()
250250
QVERIFY( !mCompleted );
251251
QVERIFY( mError );
252252
QVERIFY( !mCanceled );
253-
QVERIFY( ! QFileInfo( fileName ).exists( ) );
253+
QVERIFY( ! QFileInfo::exists( fileName ) );
254254
}
255255

256256

0 commit comments

Comments
 (0)