From 3dbf4e9a6979802fff55e2f5e6aa54a14280e128 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 15 Jan 2015 21:28:01 +0100 Subject: Cleanups Remove duplicated methods. Remove some mostly unused methods, and simplify some others. Change-Id: I605b249e54417bb32c3dfc8e22f2c8b6b684a1e1 Reviewed-by: Simon Hausmann --- src/qml/qml/qqmlcontextwrapper.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/qml/qml/qqmlcontextwrapper.cpp') diff --git a/src/qml/qml/qqmlcontextwrapper.cpp b/src/qml/qml/qqmlcontextwrapper.cpp index 946ea01565..c5f1c7bec8 100644 --- a/src/qml/qml/qqmlcontextwrapper.cpp +++ b/src/qml/qml/qqmlcontextwrapper.cpp @@ -137,7 +137,7 @@ ReturnedValue QmlContextWrapper::get(Managed *m, String *name, bool *hasProperty if (hasProp) { if (hasProperty) *hasProperty = hasProp; - return result.asReturnedValue(); + return result->asReturnedValue(); } if (resource->d()->isNullWrapper) @@ -150,7 +150,7 @@ ReturnedValue QmlContextWrapper::get(Managed *m, String *name, bool *hasProperty if (hasProp) { if (hasProperty) *hasProperty = hasProp; - return result.asReturnedValue(); + return result->asReturnedValue(); } // Its possible we could delay the calculation of the "actual" context (in the case @@ -161,7 +161,7 @@ ReturnedValue QmlContextWrapper::get(Managed *m, String *name, bool *hasProperty if (!context) { if (hasProperty) *hasProperty = true; - return result.asReturnedValue(); + return result->asReturnedValue(); } // Search type (attached property/enum/imported scripts) names @@ -240,7 +240,7 @@ ReturnedValue QmlContextWrapper::get(Managed *m, String *name, bool *hasProperty if (hasProp) { if (hasProperty) *hasProperty = true; - return result.asReturnedValue(); + return result->asReturnedValue(); } } scopeObject = 0; @@ -253,7 +253,7 @@ ReturnedValue QmlContextWrapper::get(Managed *m, String *name, bool *hasProperty if (hasProp) { if (hasProperty) *hasProperty = true; - return result.asReturnedValue(); + return result->asReturnedValue(); } } @@ -262,7 +262,7 @@ ReturnedValue QmlContextWrapper::get(Managed *m, String *name, bool *hasProperty expressionContext->unresolvedNames = true; - return Primitive::undefinedValue().asReturnedValue(); + return Encode::undefined(); } void QmlContextWrapper::put(Managed *m, String *name, const Value &value) -- cgit v1.2.3