Fix a few more clazy warnings
This commit is contained in:
parent
681e9da668
commit
5fed4d21b1
2 changed files with 5 additions and 3 deletions
|
|
@ -4424,7 +4424,9 @@ Cache::displayName(const QString &room_id, const QString &user_id)
|
|||
static bool
|
||||
isDisplaynameSafe(const std::string &s)
|
||||
{
|
||||
for (QChar c : QString::fromStdString(s)) {
|
||||
const auto str = QString::fromStdString(s);
|
||||
|
||||
for (QChar c : str) {
|
||||
if (c.isPrint() && !c.isSpace())
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue