Fixed build with Qt6.

This commit is contained in:
23rd 2024-06-28 22:12:14 +03:00 committed by John Preston
parent 1ed81b1c9c
commit 68cb568898

View file

@ -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;
}
}