Skip to content

Commit feedcd7

Browse files
espinafrenyalldawson
authored andcommittedMay 10, 2020
Code review: using QStringLiteral instead of QString
1 parent 08d83dd commit feedcd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/providers/postgres/qgspostgresdataitems.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ bool QgsPostgresUtils::deleteLayer( const QString &uri, QString &errCause )
6565
QString type = resViewCheck.PQgetvalue( 0, 0 );
6666
if ( type == QLatin1String( "v" ) || type == QLatin1String( "m" ) )
6767
{
68-
QString sql = QString( "DROP %1VIEW %2" ).arg( type == QLatin1String( "m" ) ? "MATERIALIZED " : QString(), schemaTableName );
68+
QString sql = QStringLiteral( "DROP %1VIEW %2" ).arg( type == QLatin1String( "m" ) ? QStringLiteral( "MATERIALIZED " ) : QString(), schemaTableName );
6969
QgsPostgresResult result( conn->PQexec( sql ) );
7070
if ( result.PQresultStatus() != PGRES_COMMAND_OK )
7171
{

0 commit comments

Comments
 (0)
Please sign in to comment.