File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ void QgsPostgresProjectStorageDialog::populateSchemas()
104
104
return ;
105
105
}
106
106
107
- for ( const QgsPostgresSchemaProperty &schema : qAsConst ( schemas ) )
107
+ for ( const QgsPostgresSchemaProperty &schema : qgis::as_const ( schemas ) )
108
108
{
109
109
mCboSchema ->addItem ( schema.name );
110
110
}
@@ -117,7 +117,7 @@ void QgsPostgresProjectStorageDialog::populateProjects()
117
117
mCboProject ->clear ();
118
118
119
119
QString uri = currentProjectUri ();
120
- QgsProjectStorage *storage = QgsApplication::projectStorageRegistry ()->projectStorageFromType ( " postgresql" );
120
+ QgsProjectStorage *storage = QgsApplication::projectStorageRegistry ()->projectStorageFromType ( QStringLiteral ( " postgresql" ) );
121
121
Q_ASSERT ( storage );
122
122
mCboProject ->addItems ( storage->listProjects ( uri ) );
123
123
projectChanged ();
@@ -157,7 +157,7 @@ void QgsPostgresProjectStorageDialog::removeProject()
157
157
if ( res != QMessageBox::Yes )
158
158
return ;
159
159
160
- QgsProjectStorage *storage = QgsApplication::projectStorageRegistry ()->projectStorageFromType ( " postgresql" );
160
+ QgsProjectStorage *storage = QgsApplication::projectStorageRegistry ()->projectStorageFromType ( QStringLiteral ( " postgresql" ) );
161
161
Q_ASSERT ( storage );
162
162
storage->removeProject ( currentProjectUri () );
163
163
populateProjects ();
You can’t perform that action at this time.
0 commit comments