Skip to content

Commit

Permalink
QStringLiteral
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Dec 24, 2020
1 parent cf7ee1a commit 82cefbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgscoordinatereferencesystem.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ bool QgsCoordinateReferenceSystem::createFromString( const QString &definition )
} }
else 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 ); match = reCrsStr.match( definition );
if ( match.capturedStart() == 0 ) if ( match.capturedStart() == 0 )
{ {
Expand Down Expand Up @@ -406,7 +406,7 @@ bool QgsCoordinateReferenceSystem::createFromOgcWmsCrs( const QString &crs )
QString wmsCrs = crs; QString wmsCrs = crs;


thread_local const QRegExp re_uri( QStringLiteral( "http://www\\.opengis\\.net/def/crs/([^/]+).+/([^/]+)" ), Qt::CaseInsensitive ); 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 ) ) if ( re_uri.exactMatch( wmsCrs ) )
{ {
wmsCrs = re_uri.cap( 1 ) + ':' + re_uri.cap( 2 ); wmsCrs = re_uri.cap( 1 ) + ':' + re_uri.cap( 2 );
Expand Down

0 comments on commit 82cefbc

Please sign in to comment.