From 5ea4f835145fe8edfa6facc32e15c46452450e48 Mon Sep 17 00:00:00 2001 From: Maksim Andrianov Date: Fri, 22 Jun 2018 20:34:26 +0300 Subject: Review fixes --- ugc/serdes.hpp | 2 +- ugc/storage.hpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'ugc') diff --git a/ugc/serdes.hpp b/ugc/serdes.hpp index 2ae89cbbd1..57b58f8097 100644 --- a/ugc/serdes.hpp +++ b/ugc/serdes.hpp @@ -207,7 +207,7 @@ public: { auto const size = DesVarUint(); m.reserve(size); - for (int i = 0; i < size; ++i) + for (size_t i = 0; i < size; ++i) { std::pair p; (*this)(p); diff --git a/ugc/storage.hpp b/ugc/storage.hpp index 4a86993ad7..b9947925e2 100644 --- a/ugc/storage.hpp +++ b/ugc/storage.hpp @@ -59,8 +59,7 @@ inline std::string DebugPrint(Storage::SettingResult const & result) case Storage::SettingResult::InvalidUGC: return "Invalid UGC"; case Storage::SettingResult::WritingError: return "Writing Error"; } - - INCORRECT_VALUE_IN_THE_SWITCH(); + CHECK_SWITCH(); } } // namespace ugc -- cgit v1.2.3