From 5ca98829f7c5bf504e78bd51e6ceb534c023ae05 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 28 Dec 2021 20:09:08 +0100 Subject: Some qt6 prep --- src/Cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Cache.cpp') diff --git a/src/Cache.cpp b/src/Cache.cpp index b1d03921..90b087db 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -3835,7 +3835,7 @@ Cache::displayName(const QString &room_id, const QString &user_id) static bool isDisplaynameSafe(const std::string &s) { - for (QChar c : QString::fromStdString(s).toUcs4()) { + for (QChar c : QString::fromStdString(s)) { if (c.isPrint() && !c.isSpace()) return false; } -- cgit 1.5.1