diff --git a/coding/csv_reader.hpp b/coding/csv_reader.hpp index b10ebf1c1e..710e631179 100644 --- a/coding/csv_reader.hpp +++ b/coding/csv_reader.hpp @@ -35,7 +35,7 @@ public: template void Read(Reader const & reader, Callback const & fn, Params const & params = {}) const { - std::string str(reader.Size(), '\0'); + std::string str(static_cast(reader.Size()), '\0'); reader.Read(0, &str[0], reader.Size()); std::istringstream stream(str); Read(stream, fn, params); diff --git a/indexer/ftraits.hpp b/indexer/ftraits.hpp index 1348d2f282..154c48e2f8 100644 --- a/indexer/ftraits.hpp +++ b/indexer/ftraits.hpp @@ -50,7 +50,7 @@ using UGCRatingCategories = std::vector; struct UGCItem { - UGCItem() = default; + UGCItem() {} UGCItem(UGCTypeMask m, UGCRatingCategories && c) : m_mask(m), m_categories(std::move(c)) { diff --git a/ugc/storage.cpp b/ugc/storage.cpp index 171af6095c..e3fd2a54b0 100644 --- a/ugc/storage.cpp +++ b/ugc/storage.cpp @@ -93,7 +93,7 @@ UGCUpdate Storage::GetUGCUpdate(FeatureID const & id) const return {}; auto const offset = index->m_offset; - auto const size = UGCSizeAtIndex(distance(m_UGCIndexes.begin(), index)); + auto const size = static_cast(UGCSizeAtIndex(distance(m_UGCIndexes.begin(), index))); vector buf; buf.resize(size); auto const ugcFilePath = GetUGCFilePath(); @@ -222,7 +222,7 @@ void Storage::Defragmentation() continue; auto const offset = index.m_offset; - auto const size = UGCSizeAtIndex(i); + auto const size = static_cast(UGCSizeAtIndex(i)); vector buf; buf.resize(size); r.Read(offset, buf.data(), size); @@ -269,7 +269,7 @@ string Storage::GetUGCToSend() const continue; auto const offset = index.m_offset; - auto const bufSize = UGCSizeAtIndex(i); + auto const bufSize = static_cast(UGCSizeAtIndex(i)); buf.resize(bufSize); try {