From 68cb568898ac484444fc72a205e023d40be4fa08 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Fri, 28 Jun 2024 22:12:14 +0300 Subject: [PATCH] Fixed build with Qt6. --- Telegram/SourceFiles/dialogs/ui/chat_search_in.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/dialogs/ui/chat_search_in.cpp b/Telegram/SourceFiles/dialogs/ui/chat_search_in.cpp index 310f687ba..5fcc8f78b 100644 --- a/Telegram/SourceFiles/dialogs/ui/chat_search_in.cpp +++ b/Telegram/SourceFiles/dialogs/ui/chat_search_in.cpp @@ -242,8 +242,8 @@ HashOrCashtag IsHashOrCashtagSearchQuery(const QString &query) { } return HashOrCashtag::Hashtag; } else if (first == '$') { - for (const auto &ch : trimmed.midRef(1)) { - if (ch < 'A' || ch > 'Z') { + for (auto it = trimmed.begin() + 1; it != trimmed.end(); ++it) { + if ((*it) < 'A' || (*it) > 'Z') { return HashOrCashtag::None; } }