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