Skip to content
Permalink
Browse files

Code review: using QStringLiteral instead of QString

  • Loading branch information
espinafre authored and nyalldawson committed May 6, 2020
1 parent 13cf803 commit 9362b62766beac3ea0718091dbc331b36fd762a1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresdataitems.cpp
@@ -59,7 +59,7 @@ bool QgsPostgresUtils::deleteLayer( const QString &uri, QString &errCause )
QString type = resViewCheck.PQgetvalue( 0, 0 );
if ( type == QLatin1String( "v" ) || type == QLatin1String( "m" ) )
{
QString sql = QString( "DROP %1VIEW %2" ).arg( type == QLatin1String( "m" ) ? "MATERIALIZED " : QString(), schemaTableName );
QString sql = QStringLiteral( "DROP %1VIEW %2" ).arg( type == QLatin1String( "m" ) ? QStringLiteral( "MATERIALIZED " ) : QString(), schemaTableName );
QgsPostgresResult result( conn->PQexec( sql ) );
if ( result.PQresultStatus() != PGRES_COMMAND_OK )
{

0 comments on commit 9362b62

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