summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2020-11-14 18:31:42 +0100
committerUwe Klotz <uklotz@mixxx.org>2020-11-14 18:31:42 +0100
commitfde1b00e97694f216b547c3f25a41ead68e3745e (patch)
treeef27d0fca8eadb49c2e5c5dc458a4f925aa132f6 /src/control
parent3c3075ccab9b470c665599a88db662fa7163bf51 (diff)
parent663c343e23765edd752bf7dece4dc59563c2346f (diff)
Merge branch '2.3' of git@github.com:mixxxdj/mixxx.git into main
Diffstat (limited to 'src/control')
-rw-r--r--src/control/controlobjectscript.cpp4
-rw-r--r--src/control/controlobjectscript.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/control/controlobjectscript.cpp b/src/control/controlobjectscript.cpp
index b7cbfd0194..bccaacdeb6 100644
--- a/src/control/controlobjectscript.cpp
+++ b/src/control/controlobjectscript.cpp
@@ -66,7 +66,7 @@ bool ControlObjectScript::removeScriptConnection(const ScriptConnection& conn) {
void ControlObjectScript::disconnectAllConnectionsToFunction(const QJSValue& function) {
// Make a local copy of m_scriptConnections because items are removed within the loop.
- const QList<ScriptConnection> connections = m_scriptConnections;
+ const QVector<ScriptConnection> connections = m_scriptConnections;
for (const auto& conn: connections) {
if (conn.callback.strictlyEquals(function)) {
removeScriptConnection(conn);
@@ -79,7 +79,7 @@ void ControlObjectScript::slotValueChanged(double value, QObject*) {
// This allows a script to disconnect a callback from inside the
// the callback. Otherwise the this may crash since the disconnect call
// happens during conn.function.call() in the middle of the loop below.
- const QList<ScriptConnection> connections = m_scriptConnections;
+ const QVector<ScriptConnection> connections = m_scriptConnections;
for (auto&& conn: connections) {
conn.executeCallback(value);
}
diff --git a/src/control/controlobjectscript.h b/src/control/controlobjectscript.h
index acc6d9ceba..9dbd446ab5 100644
--- a/src/control/controlobjectscript.h
+++ b/src/control/controlobjectscript.h
@@ -38,7 +38,7 @@ class ControlObjectScript : public ControlProxy {
void slotValueChanged(double v, QObject*);
private:
- QList<ScriptConnection> m_scriptConnections;
+ QVector<ScriptConnection> m_scriptConnections;
};
#endif // CONTROLOBJECTSCRIPT_H