diff options
Diffstat (limited to 'src/qml/jsruntime/qv4scopedvalue_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4scopedvalue_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4scopedvalue_p.h b/src/qml/jsruntime/qv4scopedvalue_p.h index 23fc091d73..97ad97b45f 100644 --- a/src/qml/jsruntime/qv4scopedvalue_p.h +++ b/src/qml/jsruntime/qv4scopedvalue_p.h @@ -308,6 +308,9 @@ struct Scoped return *this; } + operator T *() { + return static_cast<T *>(ptr->managed()); + } T *operator->() { return static_cast<T *>(ptr->managed()); @@ -379,7 +382,6 @@ struct ScopedCallData { }; -struct StringRef; struct ObjectRef; struct FunctionObjectRef; |