From 4c2fc600a0ff35922d30f8961cd18ab539cae16c Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Tue, 8 Sep 2020 04:48:57 +0300 Subject: [PATCH] Workaround gcc bug in other places too --- Telegram/SourceFiles/kotato/json_settings.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/kotato/json_settings.cpp b/Telegram/SourceFiles/kotato/json_settings.cpp index 651843eeb..355e79269 100644 --- a/Telegram/SourceFiles/kotato/json_settings.cpp +++ b/Telegram/SourceFiles/kotato/json_settings.cpp @@ -841,9 +841,9 @@ bool Manager::readCustomFile() { } auto isPeerTypeRead = ReadStringOption(peer, "type", [&](auto type) { - peerStruct.type = type.toLower() == qsl("channel") + peerStruct.type = QString::compare(type.toLower(), "channel") ? LocalFolder::Peer::Type::Channel - : type.toLower() == qsl("chat") + : QString::compare(type.toLower(), "chat") ? LocalFolder::Peer::Type::Chat : LocalFolder::Peer::Type::User; }); @@ -881,9 +881,9 @@ bool Manager::readCustomFile() { } auto isPeerTypeRead = ReadStringOption(peer, "type", [&](auto type) { - peerStruct.type = type.toLower() == qsl("channel") + peerStruct.type = QString::compare(type.toLower(), "channel") ? LocalFolder::Peer::Type::Channel - : type.toLower() == qsl("chat") + : QString::compare(type.toLower(), "chat") ? LocalFolder::Peer::Type::Chat : LocalFolder::Peer::Type::User; });