diff options
author | Lars Knoll <[email protected]> | 2014-03-10 19:58:05 +0100 |
---|---|---|
committer | The Qt Project <[email protected]> | 2014-03-11 08:37:01 +0100 |
commit | 8ed6c62dc76ebc2e510ecc028c34c160018af86c (patch) | |
tree | 335e73bcdb52b1a8300a67c1f91299e7bc97972a /src/qml/jsruntime/qv4regexpobject.cpp | |
parent | dfed088a50298fe4a9d0eb8a9d0a2711dfc206c1 (diff) |
Cleanup our runtime methods
Move all our runtime methods into the QV4::Runtime
struct and give them nicer names without underscores.
Sort them logically and remove a few unused methods.
Change-Id: Ib69b71764ff194d0ba211aac581f9a99734d8180
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4regexpobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4regexpobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4regexpobject.cpp b/src/qml/jsruntime/qv4regexpobject.cpp index 790eaf79f7..daf85c0f7d 100644 --- a/src/qml/jsruntime/qv4regexpobject.cpp +++ b/src/qml/jsruntime/qv4regexpobject.cpp @@ -274,7 +274,7 @@ ReturnedValue RegExpCtor::construct(Managed *m, CallData *callData) bool ignoreCase = false; bool multiLine = false; if (!f->isUndefined()) { - f = __qmljs_to_string(ctx, f); + f = RuntimeHelpers::toString(ctx, f); if (scope.hasException()) return Encode::undefined(); QString str = f->stringValue()->toQString(); @@ -360,7 +360,7 @@ ReturnedValue RegExpPrototype::method_exec(CallContext *ctx) return ctx->throwTypeError(); ScopedValue arg(scope, ctx->argument(0)); - arg = __qmljs_to_string(ctx, arg); + arg = RuntimeHelpers::toString(ctx, arg); if (scope.hasException()) return Encode::undefined(); QString s = arg->stringValue()->toQString(); |