From dfa7cb182641a719d311800e2de52661a4a97d90 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 26 Jul 2017 19:10:04 +0300 Subject: [PATCH] Version 1.1.16: Fix build for Qt 5.3.2 and GCC. --- Telegram/SourceFiles/codegen/emoji/replaces.cpp | 8 ++++---- .../ThirdParty/emoji_suggestions/emoji_suggestions.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Telegram/SourceFiles/codegen/emoji/replaces.cpp b/Telegram/SourceFiles/codegen/emoji/replaces.cpp index dedba9de1..298b421c3 100644 --- a/Telegram/SourceFiles/codegen/emoji/replaces.cpp +++ b/Telegram/SourceFiles/codegen/emoji/replaces.cpp @@ -308,21 +308,21 @@ Replaces PrepareReplaces(const QString &filename) { } auto list = document.object(); for (auto i = list.constBegin(), e = list.constEnd(); i != e; ++i) { - if (!i->isObject()) { + if (!(*i).isObject()) { logReplacesError(filename) << "Child object not found."; return Replaces(filename); } auto childKey = i.key(); - auto child = i->toObject(); + auto child = (*i).toObject(); auto failed = false; auto getString = [filename, childKey, &child, &failed](const QString &key) { auto it = child.constFind(key); - if (it == child.constEnd() || !it->isString()) { + if (it == child.constEnd() || !(*it).isString()) { logReplacesError(filename) << "Child '" << childKey.toStdString() << "' field not found: " << key.toStdString(); failed = true; return QString(); } - return it->toString(); + return (*it).toString(); }; auto idParts = getString("output").split('-'); auto name = getString("name"); diff --git a/Telegram/ThirdParty/emoji_suggestions/emoji_suggestions.cpp b/Telegram/ThirdParty/emoji_suggestions/emoji_suggestions.cpp index b0b7d4021..ebe23cbd5 100644 --- a/Telegram/ThirdParty/emoji_suggestions/emoji_suggestions.cpp +++ b/Telegram/ThirdParty/emoji_suggestions/emoji_suggestions.cpp @@ -170,7 +170,7 @@ private: private: std::vector &_map; int _index = 0; - bool _guarded = false; + small _guarded = 0; }; std::vector _currentItemWordsUsedMap;