Skip to content
Permalink
Browse files

No const

  • Loading branch information
m-kuhn committed Dec 29, 2020
1 parent 4b10ee3 commit 3c0b971b6f714a0083c27c866e29b0eeed57fb69
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/expression/qgsexpressionnodeimpl.cpp
@@ -538,20 +538,20 @@ QVariant QgsExpressionNodeBinaryOperator::evalNode( QgsExpression *parent, const
{
esc_regexp.replace( 0, 1, QStringLiteral( ".*" ) );
}
const thread_local QRegExp rx1( QStringLiteral( "[^\\\\](%)" ) );
thread_local QRegExp rx1( QStringLiteral( "[^\\\\](%)" ) );
int pos = 0;
while ( ( pos = rx1.indexIn( esc_regexp, pos ) ) != -1 )
{
esc_regexp.replace( pos + 1, 1, QStringLiteral( ".*" ) );
pos += 1;
}
const thread_local QRegExp rx2( QStringLiteral( "\\\\%" ) );
thread_local QRegExp rx2( QStringLiteral( "\\\\%" ) );
esc_regexp.replace( rx2, QStringLiteral( "%" ) );
if ( esc_regexp.startsWith( '_' ) )
{
esc_regexp.replace( 0, 1, QStringLiteral( "." ) );
}
const thread_local QRegExp rx3( QStringLiteral( "[^\\\\](_)" ) );
thread_local QRegExp rx3( QStringLiteral( "[^\\\\](_)" ) );
pos = 0;
while ( ( pos = rx3.indexIn( esc_regexp, pos ) ) != -1 )
{

0 comments on commit 3c0b971

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