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
15321532 qCDebug(scriptengine_module) << "require.requestScript -- clearing cache for" << modulePath;
15331533 scriptCache->deleteScript(modulePath);
15341534 }
1535− BatchLoader* loader = new BatchLoader({ modulePath });
1535+ BatchLoader* loader = new BatchLoader(QList<QUrl>({ modulePath }));
15361536 connect(loader, &BatchLoader::finished, this, onload);
15371537 connect(this, &QObject::destroyed, loader, &QObject::deleteLater);
15381538 // fail faster? (since require() blocks the engine thread while resolving dependencies)