mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
Fixed build with Qt6.
This commit is contained in:
parent
1ed81b1c9c
commit
68cb568898
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue