diff options
Diffstat (limited to 'src/Cache.cpp')
-rw-r--r-- | src/Cache.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp index 1c29d530..b3981c64 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -4424,8 +4424,7 @@ Cache::displayName(const QString &room_id, const QString &user_id) static bool isDisplaynameSafe(const std::string &s) { - for (std::uint32_t cc : QString::fromStdString(s).toStdU32String()) { - auto c = QChar(cc); + for (QChar c : QString::fromStdString(s)) { if (c.isPrint() && !c.isSpace()) return false; } |