Skip to content

Commit b8e8541

Browse files
committed
Fix build on Qt 5.5
1 parent 1aa7bbc commit b8e8541

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/providers/postgres/qgspostgresprojectstoragedialog.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void QgsPostgresProjectStorageDialog::populateSchemas()
104104
return;
105105
}
106106

107-
for ( const QgsPostgresSchemaProperty &schema : qAsConst( schemas ) )
107+
for ( const QgsPostgresSchemaProperty &schema : qgis::as_const( schemas ) )
108108
{
109109
mCboSchema->addItem( schema.name );
110110
}
@@ -117,7 +117,7 @@ void QgsPostgresProjectStorageDialog::populateProjects()
117117
mCboProject->clear();
118118

119119
QString uri = currentProjectUri();
120-
QgsProjectStorage *storage = QgsApplication::projectStorageRegistry()->projectStorageFromType( "postgresql" );
120+
QgsProjectStorage *storage = QgsApplication::projectStorageRegistry()->projectStorageFromType( QStringLiteral( "postgresql" ) );
121121
Q_ASSERT( storage );
122122
mCboProject->addItems( storage->listProjects( uri ) );
123123
projectChanged();
@@ -157,7 +157,7 @@ void QgsPostgresProjectStorageDialog::removeProject()
157157
if ( res != QMessageBox::Yes )
158158
return;
159159

160-
QgsProjectStorage *storage = QgsApplication::projectStorageRegistry()->projectStorageFromType( "postgresql" );
160+
QgsProjectStorage *storage = QgsApplication::projectStorageRegistry()->projectStorageFromType( QStringLiteral( "postgresql" ) );
161161
Q_ASSERT( storage );
162162
storage->removeProject( currentProjectUri() );
163163
populateProjects();

0 commit comments

Comments
 (0)