Skip to content
Permalink
Browse files

Fix build on Qt 5.5

  • Loading branch information
nyalldawson committed Apr 10, 2018
1 parent 1aa7bbc commit b8e8541f0b6e2707f819510d1efd466514e646a7
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/providers/postgres/qgspostgresprojectstoragedialog.cpp
@@ -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 );
}
@@ -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();
@@ -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();

0 comments on commit b8e8541

Please sign in to comment.
You can’t perform that action at this time.