History

fix some warnings

HifiExperiments committed 2 years ago

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

Showing the changes to plugins/JSAPIExample (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
165 * settings = null; // optional best pratice; allows the object to be reclaimed ASAP by the JS garbage collector165 * 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();