History

isolate calls to the QtScript libraries to an interface we control

Heather Anderson committed 5 years ago

Commit 1e018db1 parent 713b29e260 files · +6904 −5064Browse files

Showing the changes to interface/src/scripting/TestScriptingInterface.cpp (1 of 260 files). Show all

Unified · Split

interface/src/scripting/TestScriptingInterface.cpp+3−2
@@ -16,6 +16,7 @@ · 15 unmodified lines
1616 #include <DependencyManager.h>
1717 #include <MainWindow.h>
1818 #include <OffscreenUi.h>
19+#include <ScriptValue.h>
1920 #include <StatTracker.h>
2021 #include <Trace.h>
2122
@@ -153,9 +154,9 @@ void TestScriptingInterface::savePhysicsSimulationStats(QString originalPath) { · 131 unmodified lines
153154 qApp->saveNextPhysicsStats(path);
154155 }
155156
156−void TestScriptingInterface::profileRange(const QString& name, QScriptValue fn) {
157+void TestScriptingInterface::profileRange(const QString& name, ScriptValuePointer fn) {
157158 PROFILE_RANGE(script, name);
158− fn.call();
159+ fn->call();
159160 }
160161
161162 void TestScriptingInterface::clearCaches() {