Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ugc
diff options
context:
space:
mode:
authorMaksim Andrianov <maksimandrianov1@gmail.com>2018-06-22 20:34:26 +0300
committerMaksim Andrianov <maksimandrianov1@gmail.com>2018-06-25 17:58:40 +0300
commit5ea4f835145fe8edfa6facc32e15c46452450e48 (patch)
tree94d2ce40239f76f023126f53bee456b304be5455 /ugc
parent2a8cf2837351996c39bd5e43843c21009f033f5c (diff)
Review fixes
Diffstat (limited to 'ugc')
-rw-r--r--ugc/serdes.hpp2
-rw-r--r--ugc/storage.hpp3
2 files changed, 2 insertions, 3 deletions
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<uint32_t>();
m.reserve(size);
- for (int i = 0; i < size; ++i)
+ for (size_t i = 0; i < size; ++i)
{
std::pair<T, U> 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