summary refs log tree commit diff
path: root/src/ui/RoomSettings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/RoomSettings.cpp')
-rw-r--r--src/ui/RoomSettings.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/RoomSettings.cpp b/src/ui/RoomSettings.cpp

index ed8a7cd8..038c2e89 100644 --- a/src/ui/RoomSettings.cpp +++ b/src/ui/RoomSettings.cpp
@@ -235,7 +235,7 @@ QString RoomSettings::roomTopic() const { return utils::replaceEmoji(utils::linkifyMessage( - QString::fromStdString(info_.topic).toHtmlEscaped().replace("\n", "<br>"))); + QString::fromStdString(info_.topic).toHtmlEscaped().replace(QLatin1String("\n"), QLatin1String("<br>")))); } QString @@ -563,10 +563,10 @@ RoomSettings::updateAvatar() QMimeDatabase db; QMimeType mime = db.mimeTypeForFile(fileName, QMimeDatabase::MatchContent); - const auto format = mime.name().split("/")[0]; + const auto format = mime.name().split(QStringLiteral("/"))[0]; QFile file{fileName, this}; - if (format != "image") { + if (format != QLatin1String("image")) { emit displayError(tr("The selected file is not an image")); return; }