@@ -308,7 +308,7 @@ QString QgsProjectionSelector::selectedProj4String()
308
308
if ( srsId.toLong () >= USER_CRS_START_ID )
309
309
{
310
310
databaseFileName = QgsApplication::qgisUserDbFilePath ();
311
- if ( !QFileInfo ( databaseFileName ). exists ( ) ) // its unlikely that this condition will ever be reached
311
+ if ( !QFileInfo::exists ( databaseFileName ) ) // its unlikely that this condition will ever be reached
312
312
return QString ();
313
313
}
314
314
else // must be a system projection then
@@ -372,7 +372,7 @@ QString QgsProjectionSelector::getSelectedExpression( const QString& expression
372
372
if ( lvi->text ( QGIS_CRS_ID_COLUMN ).toLong () >= USER_CRS_START_ID )
373
373
{
374
374
databaseFileName = QgsApplication::qgisUserDbFilePath ();
375
- if ( !QFileInfo ( databaseFileName ). exists ( ) )
375
+ if ( !QFileInfo::exists ( databaseFileName ) )
376
376
{
377
377
return QString ();
378
378
}
@@ -483,7 +483,7 @@ void QgsProjectionSelector::loadUserCrsList( QSet<QString> *crsFilter )
483
483
// if it doesnt exist we copy it in from the global resources dir
484
484
485
485
// return straight away if the user has not created any custom projections
486
- if ( !QFileInfo ( databaseFileName ). exists ( ) )
486
+ if ( !QFileInfo::exists ( databaseFileName ) )
487
487
{
488
488
QgsDebugMsg ( " Users qgis.db not found...skipping" );
489
489
mUserProjListDone = true ;
@@ -566,7 +566,7 @@ void QgsProjectionSelector::loadCrsList( QSet<QString> *crsFilter )
566
566
// read only filesystem because otherwise sqlite will try
567
567
// to create the db file on the fly
568
568
569
- if ( !QFileInfo ( mSrsDatabaseFileName ). exists ( ) )
569
+ if ( !QFileInfo::exists ( mSrsDatabaseFileName ) )
570
570
{
571
571
mProjListDone = true ;
572
572
return ;
@@ -888,7 +888,7 @@ long QgsProjectionSelector::getLargestCrsIdMatch( const QString& theSql )
888
888
889
889
// check the db is available
890
890
QString databaseFileName = QgsApplication::qgisUserDbFilePath ();
891
- if ( QFileInfo ( databaseFileName ). exists ( ) ) // only bother trying to open if the file exists
891
+ if ( QFileInfo::exists ( databaseFileName ) ) // only bother trying to open if the file exists
892
892
{
893
893
result = sqlite3_open_v2 ( databaseFileName.toUtf8 ().data (), &database, SQLITE_OPEN_READONLY, nullptr );
894
894
if ( result )
0 commit comments