diff --git a/Telegram/SourceFiles/boxes/connection_box.h b/Telegram/SourceFiles/boxes/connection_box.h index 44cf3766be..fd6a2cc72a 100644 --- a/Telegram/SourceFiles/boxes/connection_box.h +++ b/Telegram/SourceFiles/boxes/connection_box.h @@ -167,7 +167,6 @@ private: void addNewItem(const ProxyData &proxy); int _idCounter = 0; - int _selected = -1; std::vector _list; rpl::event_stream _views; base::Timer _saveTimer; diff --git a/Telegram/SourceFiles/core/update_checker.cpp b/Telegram/SourceFiles/core/update_checker.cpp index 3548dcaa33..722e02e138 100644 --- a/Telegram/SourceFiles/core/update_checker.cpp +++ b/Telegram/SourceFiles/core/update_checker.cpp @@ -321,12 +321,12 @@ bool Updater::checkResponse(const QByteArray &response) { LOG(("Update Error: Platform '%1' not found in response." ).arg(platform)); return false; - } else if (!it->isObject()) { + } else if (!(*it).isObject()) { LOG(("Update Error: Not an object found for platform '%1'." ).arg(platform)); return false; } - const auto types = it->toObject(); + const auto types = (*it).toObject(); const auto list = [&]() -> std::vector { if (cBetaVersion()) { return { "alpha", "beta", "stable" }; @@ -342,12 +342,12 @@ bool Updater::checkResponse(const QByteArray &response) { const auto it = types.constFind(type); if (it == types.constEnd()) { continue; - } else if (!it->isObject()) { + } else if (!(*it).isObject()) { LOG(("Update Error: Not an object found for '%1:%2'." ).arg(platform).arg(type)); return false; } - const auto map = it->toObject(); + const auto map = (*it).toObject(); const auto key = _testing ? "testing" : "released"; const auto version = map.constFind(key); const auto link = map.constFind("link"); @@ -357,17 +357,17 @@ bool Updater::checkResponse(const QByteArray &response) { LOG(("Update Error: Link not found for '%1:%2'." ).arg(platform).arg(type)); return false; - } else if (!link->isString()) { + } else if (!(*link).isString()) { LOG(("Update Error: Link is not a string for '%1:%2'." ).arg(platform).arg(type)); return false; } const auto isAvailableBeta = (type == "alpha"); const auto availableVersion = [&] { - if (version->isString()) { - return version->toString().toULongLong(); - } else if (version->isDouble()) { - return uint64(std::round(version->toDouble())); + if ((*version).isString()) { + return (*version).toString().toULongLong(); + } else if ((*version).isDouble()) { + return uint64(std::round((*version).toDouble())); } return 0ULL; }(); @@ -385,7 +385,7 @@ bool Updater::checkResponse(const QByteArray &response) { if (compare > bestCompare) { bestAvailableVersion = availableVersion; bestIsAvailableBeta = isAvailableBeta; - bestLink = link->toString(); + bestLink = (*link).toString(); } } if (!bestAvailableVersion) { diff --git a/Telegram/SourceFiles/ui/effects/radial_animation.h b/Telegram/SourceFiles/ui/effects/radial_animation.h index 093cac8b8c..d36e9aa424 100644 --- a/Telegram/SourceFiles/ui/effects/radial_animation.h +++ b/Telegram/SourceFiles/ui/effects/radial_animation.h @@ -78,7 +78,6 @@ public: private: const style::InfiniteRadialAnimation &_st; - float64 _shown = 0.; TimeMs _workStarted = 0; TimeMs _workFinished = 0; BasicAnimation _animation;