Commit 36ff2e99 authored by Thiago Macieira's avatar Thiago Macieira Committed by Qt by Nokia
Browse files

Use a QMap instead of a QHash for the regexp flags


This is unit-tested, so we need a predictable order. Therefore, we
can't use QHash anymore. Besides, this is just for 4 elements, so
there shouldn't be a perceptible overhead.

Change-Id: I878f77982e8070f3bc30bd2458e26e61b22f313d
Reviewed-by: default avatarGiuseppe D'Angelo <dangelog@gmail.com>
Reviewed-by: default avatarToby Tomkins <toby.tomkins@nokia.com>
parent 08a3b2ea
No related merge requests found
Showing with 2 additions and 2 deletions
......@@ -64,7 +64,7 @@ namespace QPatternist
class PatternFlag
{
public:
typedef QHash<QChar, PatternFlag> Hash;
typedef QMap<QChar, PatternFlag> Hash;
inline PatternFlag() : flag(PatternPlatform::NoFlags)
{
......
Error FORX0001 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/queries/invalidRegexpFlag.xq, at line 1, column 1: I is an invalid flag for regular expressions. Valid flags are:
x - Whitespace characters are removed, except when they appear in character classes
i - Matches are case insensitive
m - ^ and $ match the start and end of a line.
s - . matches newline characters
x - Whitespace characters are removed, except when they appear in character classes
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment