mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-04-22 06:02:03 +02:00
misc: replace qAsConst(removed in Qt 6.6.x) with std::as_const
Change-Id: I05041b0fd362e24a0ad17a46cd9fe2db53e5712d
This commit is contained in:
parent
5e362c2c2e
commit
3344fbaf9d
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
||||||
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)
|
||||||
|
|
||||||
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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue