Skip to content

Commit 50e9f9f

Browse files
author
jef
committedOct 14, 2009
will you ever learn to run prepare-commit.sh before commiting?
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11805 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed
 

‎src/core/qgssearchtreenode.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ bool QgsSearchTreeNode::checkAgainst( const QgsFieldMap& fields, const QgsAttrib
252252
case opLike:
253253
{
254254
if ( !getValue( value1, mLeft, fields, attributes ) ||
255-
!getValue( value2, mRight, fields, attributes ) )
255+
!getValue( value2, mRight, fields, attributes ) )
256256
return false;
257257

258258
// value1 is string to be matched
@@ -274,11 +274,7 @@ bool QgsSearchTreeNode::checkAgainst( const QgsFieldMap& fields, const QgsAttrib
274274
str.replace( "_", "." );
275275
}
276276

277-
QRegExp re( str );
278-
res = re.exactMatch( value1.string() );
279-
QgsDebugMsgLevel( "REGEXP: " + str + " ~ " + value2.string(), 2 );
280-
QgsDebugMsgLevel( " res: " + res, 2 );
281-
return res;
277+
return QRegExp( str ).exactMatch( value1.string() );
282278
}
283279

284280
default:

0 commit comments

Comments
 (0)
Please sign in to comment.