Skip to content
Snippets Groups Projects
Commit 3344fbaf authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

misc: replace qAsConst(removed in Qt 6.6.x) with std::as_const

Change-Id: I05041b0fd362e24a0ad17a46cd9fe2db53e5712d
parent 5e362c2c
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ public: ...@@ -45,7 +45,7 @@ public:
if (pluginsId.size() == 0) { if (pluginsId.size() == 0) {
return; return;
} }
for (const auto& pluginId : qAsConst(pluginsId)) { for (const auto& pluginId : std::as_const(pluginsId)) {
parent_.pluginRepliesId.remove(pluginId); parent_.pluginRepliesId.remove(pluginId);
} }
}); });
......
...@@ -227,7 +227,7 @@ VideoProvider::onFrameUpdated(const QString& id) ...@@ -227,7 +227,7 @@ VideoProvider::onFrameUpdated(const QString& id)
it->second.frameMutex.lockForRead(); it->second.frameMutex.lockForRead();
it->second.subscribersMutex.lockForRead(); it->second.subscribersMutex.lockForRead();
for (const auto& sink : qAsConst(it->second.subscribers)) { for (const auto& sink : std::as_const(it->second.subscribers)) {
sink->setVideoFrame(videoFrame); sink->setVideoFrame(videoFrame);
} }
it->second.subscribersMutex.unlock(); it->second.subscribersMutex.unlock();
...@@ -261,7 +261,7 @@ VideoProvider::onFrameUpdated(const QString& id) ...@@ -261,7 +261,7 @@ VideoProvider::onFrameUpdated(const QString& id)
it->second.frameMutex.lockForRead(); it->second.frameMutex.lockForRead();
it->second.subscribersMutex.lockForRead(); it->second.subscribersMutex.lockForRead();
for (const auto& sink : qAsConst(it->second.subscribers)) { for (const auto& sink : std::as_const(it->second.subscribers)) {
sink->setVideoFrame(videoFrame); sink->setVideoFrame(videoFrame);
} }
it->second.subscribersMutex.unlock(); it->second.subscribersMutex.unlock();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment