diff options
author | Oleg Shparber <trollixx@gmail.com> | 2014-12-31 10:34:52 -0800 |
---|---|---|
committer | Oleg Shparber <trollixx@gmail.com> | 2015-01-02 21:29:09 +0100 |
commit | 29c0102adb8b800f4947e4e7962ca414fe576866 (patch) | |
tree | 7e5e35bc688f05337f080315336cd80864144620 /src/imports | |
parent | d0db6dc2b7ceb04f2bc1815ac3216a09add8fd3d (diff) |
Use QV4::ScopedString typedef instead of actual type
Change-Id: I64ecbf6cea463387a70e909ecc5f9165d22a7b0f
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/localstorage/plugin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/imports/localstorage/plugin.cpp b/src/imports/localstorage/plugin.cpp index 8ee2742198..95e4be0c98 100644 --- a/src/imports/localstorage/plugin.cpp +++ b/src/imports/localstorage/plugin.cpp @@ -57,7 +57,7 @@ QT_BEGIN_NAMESPACE #define V4THROW_SQL(error, desc) { \ - QV4::Scoped<String> v(scope, scope.engine->newString(desc)); \ + QV4::ScopedString v(scope, scope.engine->newString(desc)); \ QV4::Scoped<Object> ex(scope, scope.engine->newErrorObject(v)); \ ex->put(QV4::ScopedString(scope, scope.engine->newIdentifier(QStringLiteral("code"))).getPointer(), QV4::ScopedValue(scope, Primitive::fromInt32(error))); \ ctx->engine()->throwError(ex); \ @@ -65,7 +65,7 @@ QT_BEGIN_NAMESPACE } #define V4THROW_SQL2(error, desc) { \ - QV4::Scoped<String> v(scope, scope.engine->newString(desc)); \ + QV4::ScopedString v(scope, scope.engine->newString(desc)); \ QV4::Scoped<Object> ex(scope, scope.engine->newErrorObject(v)); \ ex->put(QV4::ScopedString(scope, scope.engine->newIdentifier(QStringLiteral("code"))).getPointer(), QV4::ScopedValue(scope, Primitive::fromInt32(error))); \ args->setReturnValue(ctx->engine()->throwError(ex)); \ @@ -73,7 +73,7 @@ QT_BEGIN_NAMESPACE } #define V4THROW_REFERENCE(string) { \ - QV4::Scoped<String> v(scope, scope.engine->newString(string)); \ + QV4::ScopedString v(scope, scope.engine->newString(string)); \ ctx->engine()->throwReferenceError(v); \ return Encode::undefined(); \ } |