QStringLiteral

This commit is contained in:
Nyall Dawson 2018-10-22 09:30:32 +10:00
parent b379d75e1f
commit 1bf63f1331

View File

@ -32,7 +32,7 @@ QVariantMap QgsHstoreUtils::parse( const QString &string )
QString sep = sSeps.at( bits.length() );
if ( current.startsWith( '"' ) )
{
QRegularExpression re( "^\"((?:\\\\.|[^\"\\\\])*)\".*" );
QRegularExpression re( QStringLiteral( "^\"((?:\\\\.|[^\"\\\\])*)\".*" ) );
QRegularExpressionMatch match = re.match( current );
bits << QString();
if ( match.hasMatch() )