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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user