2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Added references to structured bindings since Apple clang supports them.

This commit is contained in:
23rd
2024-01-09 20:32:18 +03:00
committed by John Preston
parent 6516c7aef3
commit a1369aaad0
33 changed files with 58 additions and 58 deletions

View File

@@ -309,7 +309,7 @@ System::Timing System::countTiming(
void System::registerThread(not_null<Data::Thread*> thread) {
if (const auto topic = thread->asTopic()) {
const auto [i, ok] = _watchedTopics.emplace(topic, rpl::lifetime());
const auto &[i, ok] = _watchedTopics.emplace(topic, rpl::lifetime());
if (ok) {
topic->destroyed() | rpl::start_with_next([=] {
clearFromTopic(topic);