History

fix some warnings

HifiExperiments committed 2 years ago

Commit e6f462e1 parent 53de22f21 files · +66 −48Browse files

Showing the changes to plugins/JSAPIExample/src (1 of 21 files). Show all

Unified · Split

plugins/JSAPIExample/src/JSAPIExample.cpp+1−1
@@ -165,7 +165,7 @@ namespace REPLACE_ME_WITH_UNIQUE_NAME { · 164 unmodified lines
165165 * settings = null; // optional best pratice; allows the object to be reclaimed ASAP by the JS garbage collector
166166 */
167167 ScriptValue getScopedSettings(const QString& scope) {
168− Q_ASSERT(engine);
168+ Q_ASSERT(engine());
169169 auto engine = Scriptable::engine();
170170 if (!engine) {
171171 return ScriptValue();