diff options
| author | Ulf Hermann <[email protected]> | 2025-06-02 12:02:35 +0200 |
|---|---|---|
| committer | Ulf Hermann <[email protected]> | 2025-06-05 20:56:15 +0200 |
| commit | 18d370ffb1f09d47f6d2283f1f893503e0aac30e (patch) | |
| tree | 0721eb4330c9039d4d1691f070b35be4da7c14b2 /tests/auto/qml/qqmlecmascript | |
| parent | 03a5b7c56637029638a8573c43fa6bd0b69b3dda (diff) | |
QtQml: Better encapsulate QV4::Script
Make members private, add accessors, add m_ to member names, etc.
Change-Id: I497db10b62bbfb32f55dca227af9a518da6eaa70
Reviewed-by: Sami Shalayel <[email protected]>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript')
| -rw-r--r-- | tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index 9b901ef629..9ee27c3c59 100644 --- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp +++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp @@ -2819,7 +2819,7 @@ static inline bool evaluate_error(QV4::ExecutionEngine *v4, const QV4::Value &o, QV4::Scope scope(v4); QV4::Script program(QV4::ScopedContext(scope, scope.engine->rootContext()), QV4::Compiler::ContextType::Eval, functionSource); - program.inheritContext = true; + program.setInheritContext(); QV4::ScopedFunctionObject function(scope, program.run()); if (scope.hasException()) { @@ -2845,7 +2845,7 @@ static inline bool evaluate_value(QV4::ExecutionEngine *v4, const QV4::Value &o, QV4::Scope scope(v4); QV4::Script program(QV4::ScopedContext(scope, scope.engine->rootContext()), QV4::Compiler::ContextType::Eval, functionSource); - program.inheritContext = true; + program.setInheritContext(); QV4::ScopedFunctionObject function(scope, program.run()); if (scope.hasException()) { @@ -2876,7 +2876,7 @@ static inline QV4::ReturnedValue evaluate(QV4::ExecutionEngine *v4, const QV4::V QV4::Scope scope(v4); QV4::Script program(QV4::ScopedContext(scope, scope.engine->rootContext()), QV4::Compiler::ContextType::Eval, functionSource); - program.inheritContext = true; + program.setInheritContext(); QV4::ScopedFunctionObject function(scope, program.run()); if (scope.hasException()) { |
