Showing the changes to plugins/JSAPIExample/src (1 of 21 files). Show all
Unified · Split
| @@ -165,7 +165,7 @@ namespace REPLACE_ME_WITH_UNIQUE_NAME { · 164 unmodified lines | |||
| 165 | * settings = null; // optional best pratice; allows the object to be reclaimed ASAP by the JS garbage collector | 165 | * settings = null; // optional best pratice; allows the object to be reclaimed ASAP by the JS garbage collector |
| 166 | */ | 166 | */ |
| 167 | ScriptValue getScopedSettings(const QString& scope) { | 167 | ScriptValue getScopedSettings(const QString& scope) { |
| 168 | Q_ASSERT(engine); | 168 | Q_ASSERT(engine()); |
| 169 | auto engine = Scriptable::engine(); | 169 | auto engine = Scriptable::engine(); |
| 170 | if (!engine) { | 170 | if (!engine) { |
| 171 | return ScriptValue(); | 171 | return ScriptValue(); |