diff options
Diffstat (limited to 'src/qml/jsruntime/qv4regexpobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4regexpobject.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4regexpobject.cpp b/src/qml/jsruntime/qv4regexpobject.cpp index 144cd39bcd..0f5050c704 100644 --- a/src/qml/jsruntime/qv4regexpobject.cpp +++ b/src/qml/jsruntime/qv4regexpobject.cpp @@ -91,7 +91,7 @@ void Heap::RegExpObject::init(const QRegularExpression &re) Scoped<QV4::RegExpObject> o(scope, this); QRegularExpression::PatternOptions options = re.patternOptions(); - uint flags = (options & QRegularExpression::CaseInsensitiveOption) + CompiledData::RegExp::Flags flags = (options & QRegularExpression::CaseInsensitiveOption) ? CompiledData::RegExp::RegExp_IgnoreCase : CompiledData::RegExp::RegExp_NoFlags; if (options & QRegularExpression::MultilineOption) @@ -222,9 +222,9 @@ static bool isRegExp(ExecutionEngine *e, const QV4::Value *arg) return re ? true : false; } -uint parseFlags(Scope &scope, const QV4::Value *f) +static CompiledData::RegExp::Flags parseFlags(Scope &scope, const QV4::Value *f) { - uint flags = CompiledData::RegExp::RegExp_NoFlags; + CompiledData::RegExp::Flags flags = CompiledData::RegExp::RegExp_NoFlags; if (!f->isUndefined()) { ScopedString s(scope, f->toString(scope.engine)); if (scope.hasException()) @@ -269,7 +269,7 @@ ReturnedValue RegExpCtor::virtualCallAsConstructor(const FunctionObject *fo, con ScopedValue f(scope, argc > 1 ? argv[1] : Value::undefinedValue()); Scoped<RegExpObject> re(scope, p); QString pattern; - uint flags = CompiledData::RegExp::RegExp_NoFlags; + CompiledData::RegExp::Flags flags = CompiledData::RegExp::RegExp_NoFlags; if (re) { if (f->isUndefined()) { |