diff options
author | Maksim Andrianov <maksimandrianov1@gmail.com> | 2019-05-24 18:30:57 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2019-05-24 18:51:42 +0300 |
commit | 1d444650803b27e507b5e9532551d41bab621a53 (patch) | |
tree | c5f9a895db62560961a9ad76e56ad00fe4ddbc54 /generator | |
parent | 18942cf07cd035efde7c89b04c28fa769c1bb2d9 (diff) |
Review fixes.
Diffstat (limited to 'generator')
-rw-r--r-- | generator/statistics.cpp | 2 | ||||
-rw-r--r-- | generator/statistics.hpp | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/generator/statistics.cpp b/generator/statistics.cpp index 79e00e10d4..effa978a71 100644 --- a/generator/statistics.cpp +++ b/generator/statistics.cpp @@ -96,7 +96,7 @@ namespace stats }, FeatureType::BEST_GEOMETRY); } - bool hasName = f.GetNames().CountLangs() != 0; + auto const hasName = f.GetNames().CountLangs() != 0; m_info.m_byGeomType[f.GetGeomType()].Add(allSize, len, area, hasName); diff --git a/generator/statistics.hpp b/generator/statistics.hpp index 3a3bd1aa55..19b5abd41e 100644 --- a/generator/statistics.hpp +++ b/generator/statistics.hpp @@ -10,9 +10,6 @@ namespace stats { struct GeneralInfo { - uint64_t m_count, m_size, m_names; - double m_length, m_area; - GeneralInfo() : m_count(0), m_size(0), m_names(0), m_length(0), m_area(0) {} void Add(uint64_t szBytes, double len = 0, double area = 0, bool hasName = false) @@ -27,6 +24,12 @@ namespace stats ++m_names; } } + + uint64_t m_count; + uint64_t m_size; + uint64_t m_names; + double m_length; + double m_area; }; template <class T, int Tag> |