Skip to content
Permalink
Browse files

QStringLiteral

  • Loading branch information
m-kuhn committed Dec 24, 2020
1 parent cf7ee1a commit 82cefbc1b6066bb98939a87d574db02e590831a7
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgscoordinatereferencesystem.cpp
@@ -316,7 +316,7 @@ bool QgsCoordinateReferenceSystem::createFromString( const QString &definition )
}
else
{
const thread_local QRegularExpression reCrsStr( "^(?:(wkt|proj4|proj)\\:)?(.+)$", QRegularExpression::CaseInsensitiveOption );
const thread_local QRegularExpression reCrsStr( QStringLiteral( "^(?:(wkt|proj4|proj)\\:)?(.+)$" ), QRegularExpression::CaseInsensitiveOption );
match = reCrsStr.match( definition );
if ( match.capturedStart() == 0 )
{
@@ -406,7 +406,7 @@ bool QgsCoordinateReferenceSystem::createFromOgcWmsCrs( const QString &crs )
QString wmsCrs = crs;

thread_local const QRegExp re_uri( QStringLiteral( "http://www\\.opengis\\.net/def/crs/([^/]+).+/([^/]+)" ), Qt::CaseInsensitive );
thread_local const QRegExp re_urn( "urn:ogc:def:crs:([^:]+).+([^:]+)", Qt::CaseInsensitive );
thread_local const QRegExp re_urn( QStringLiteral( "urn:ogc:def:crs:([^:]+).+([^:]+)" ), Qt::CaseInsensitive );
if ( re_uri.exactMatch( wmsCrs ) )
{
wmsCrs = re_uri.cap( 1 ) + ':' + re_uri.cap( 2 );

0 comments on commit 82cefbc

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