Skip to content

Commit

Permalink
QStringLiteral
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 8, 2018
1 parent 84a8219 commit b792290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/mssql/qgsmssqlexpressioncompiler.cpp
Expand Up @@ -94,8 +94,8 @@ QString QgsMssqlExpressionCompiler::quotedValue( const QVariant &value, bool &ok
QString QgsMssqlExpressionCompiler::quotedIdentifier( const QString &identifier )
{
QString quoted = identifier;
quoted.replace( '[', "[[" );
quoted.replace( ']', "]]" );
quoted.replace( '[', QStringLiteral( "[[" ) );
quoted.replace( ']', QStringLiteral( "]]" ) );
quoted = quoted.prepend( '[' ).append( ']' );
return quoted;
}
Expand Down

0 comments on commit b792290

Please sign in to comment.