History

use a fully-qualified initializer when constructing BatchLoader

humbletim committed 9 years ago

Commit e91de171 parent 32e450e1 file · +1 −1Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+1−1
@@ -1532,7 +1532,7 @@ QScriptValue ScriptEngine::fetchModuleSource(const QString& modulePath, const bo · 1531 unmodified lines
1532 qCDebug(scriptengine_module) << "require.requestScript -- clearing cache for" << modulePath;1532 qCDebug(scriptengine_module) << "require.requestScript -- clearing cache for" << modulePath;
1533 scriptCache->deleteScript(modulePath);1533 scriptCache->deleteScript(modulePath);
1534 }1534 }
1535 BatchLoader* loader = new BatchLoader({ modulePath });1535 BatchLoader* loader = new BatchLoader(QList<QUrl>({ modulePath }));
1536 connect(loader, &BatchLoader::finished, this, onload);1536 connect(loader, &BatchLoader::finished, this, onload);
1537 connect(this, &QObject::destroyed, loader, &QObject::deleteLater);1537 connect(this, &QObject::destroyed, loader, &QObject::deleteLater);
1538 // fail faster? (since require() blocks the engine thread while resolving dependencies)1538 // fail faster? (since require() blocks the engine thread while resolving dependencies)