Skip to content

Commit

Permalink
Fix build on Qt 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 10, 2018
1 parent 1aa7bbc commit b8e8541
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/providers/postgres/qgspostgresprojectstoragedialog.cpp
Expand Up @@ -104,7 +104,7 @@ void QgsPostgresProjectStorageDialog::populateSchemas()
return;
}

for ( const QgsPostgresSchemaProperty &schema : qAsConst( schemas ) )
for ( const QgsPostgresSchemaProperty &schema : qgis::as_const( schemas ) )
{
mCboSchema->addItem( schema.name );
}
Expand All @@ -117,7 +117,7 @@ void QgsPostgresProjectStorageDialog::populateProjects()
mCboProject->clear();

QString uri = currentProjectUri();
QgsProjectStorage *storage = QgsApplication::projectStorageRegistry()->projectStorageFromType( "postgresql" );
QgsProjectStorage *storage = QgsApplication::projectStorageRegistry()->projectStorageFromType( QStringLiteral( "postgresql" ) );
Q_ASSERT( storage );
mCboProject->addItems( storage->listProjects( uri ) );
projectChanged();
Expand Down Expand Up @@ -157,7 +157,7 @@ void QgsPostgresProjectStorageDialog::removeProject()
if ( res != QMessageBox::Yes )
return;

QgsProjectStorage *storage = QgsApplication::projectStorageRegistry()->projectStorageFromType( "postgresql" );
QgsProjectStorage *storage = QgsApplication::projectStorageRegistry()->projectStorageFromType( QStringLiteral( "postgresql" ) );
Q_ASSERT( storage );
storage->removeProject( currentProjectUri() );
populateProjects();
Expand Down

0 comments on commit b8e8541

Please sign in to comment.