diff options
author | Maxim Pimenov <m@maps.me> | 2019-04-15 17:47:05 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2019-04-15 21:01:06 +0300 |
commit | 1d0428d056aa2e6b0024f991991f5c513cff9f73 (patch) | |
tree | cff44256529314ec8fcc9ea22fab87520a76e33a /storage | |
parent | 25087ac0bf7e8c41e0d0684e43b5285a8b8be47c (diff) |
Several explicit constructors per the Cppcheck report.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/country.cpp | 4 | ||||
-rw-r--r-- | storage/country_info_getter.cpp | 2 | ||||
-rw-r--r-- | storage/http_map_files_downloader.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/storage/country.cpp b/storage/country.cpp index 81898a9c2b..41bc1df000 100644 --- a/storage/country.cpp +++ b/storage/country.cpp @@ -90,7 +90,7 @@ class StoreFile2InfoSingleMwms : public StoreSingleMwmInterface map<string, CountryInfo> & m_file2info; public: - StoreFile2InfoSingleMwms(map<string, CountryInfo> & file2info) : m_file2info(file2info) {} + explicit StoreFile2InfoSingleMwms(map<string, CountryInfo> & file2info) : m_file2info(file2info) {} // StoreSingleMwmInterface overrides: Country * InsertToCountryTree(CountryId const & id, MwmSize /* mapSize */, string const & /* mapSha1 */, size_t /* depth */, @@ -223,7 +223,7 @@ class StoreFile2InfoTwoComponentMwms : public StoreTwoComponentMwmInterface map<string, CountryInfo> & m_file2info; public: - StoreFile2InfoTwoComponentMwms(map<string, CountryInfo> & file2info) : m_file2info(file2info) {} + explicit StoreFile2InfoTwoComponentMwms(map<string, CountryInfo> & file2info) : m_file2info(file2info) {} // StoreTwoComponentMwmInterface overrides: virtual Country * Insert(string const & id, MwmSize mapSize, MwmSize /* routingSize */, size_t /* depth */, CountryId const & /* parent */) override diff --git a/storage/country_info_getter.cpp b/storage/country_info_getter.cpp index d08cb6dddc..ebdc696195 100644 --- a/storage/country_info_getter.cpp +++ b/storage/country_info_getter.cpp @@ -33,7 +33,7 @@ struct DoFreeCacheMemory class DoCalcUSA { public: - DoCalcUSA(m2::RectD * rects) : m_rects(rects) {} + explicit DoCalcUSA(m2::RectD * rects) : m_rects(rects) {} void operator()(CountryDef const & c) { diff --git a/storage/http_map_files_downloader.cpp b/storage/http_map_files_downloader.cpp index 0a87327365..a7cf8417d9 100644 --- a/storage/http_map_files_downloader.cpp +++ b/storage/http_map_files_downloader.cpp @@ -14,7 +14,7 @@ class ErrorHttpRequest : public downloader::HttpRequest { string m_filePath; public: - ErrorHttpRequest(string const & filePath) + explicit ErrorHttpRequest(string const & filePath) : HttpRequest(Callback(), Callback()), m_filePath(filePath) { m_status = Status::Failed; |