MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / removeQueuesWithNames

Function removeQueuesWithNames

lib/queue/action-queue-tab.cpp:138–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138static void removeQueuesWithNames(const QStringList &queueNames)
139{
140 for (const auto &name : queueNames) {
141 auto queue = GetWeakActionQueueByQString(name).lock();
142 if (!queue) {
143 continue;
144 }
145
146 auto &queues = GetActionQueues();
147 queues.erase(
148 std::remove_if(
149 queues.begin(), queues.end(),
150 [queue](const std::shared_ptr<Item> &item) {
151 return item == queue;
152 }),
153 queues.end());
154 }
155}
156
157void ActionQueueTable::Remove()
158{

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected