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/map
diff options
context:
space:
mode:
authorMaxim Pimenov <m@maps.me>2019-04-15 17:47:05 +0300
committerArsentiy Milchakov <milcars@mapswithme.com>2019-04-15 21:01:06 +0300
commit1d0428d056aa2e6b0024f991991f5c513cff9f73 (patch)
treecff44256529314ec8fcc9ea22fab87520a76e33a /map
parent25087ac0bf7e8c41e0d0684e43b5285a8b8be47c (diff)
Several explicit constructors per the Cppcheck report.
Diffstat (limited to 'map')
-rw-r--r--map/map_tests/mwm_url_tests.cpp2
-rw-r--r--map/mwm_tests/mwm_foreach_test.cpp2
-rw-r--r--map/style_tests/style_symbols_consistency_test.cpp2
-rw-r--r--map/user_mark.hpp4
4 files changed, 5 insertions, 5 deletions
diff --git a/map/map_tests/mwm_url_tests.cpp b/map/map_tests/mwm_url_tests.cpp
index bc1d1ee68a..31b3d1abb4 100644
--- a/map/map_tests/mwm_url_tests.cpp
+++ b/map/map_tests/mwm_url_tests.cpp
@@ -31,7 +31,7 @@ UserMark::Type const type = UserMark::Type::API;
class ApiTest
{
public:
- ApiTest(string const & uriString)
+ explicit ApiTest(string const & uriString)
: m_fm(kFrameworkParams)
{
m_m = &m_fm.GetBookmarkManager();
diff --git a/map/mwm_tests/mwm_foreach_test.cpp b/map/mwm_tests/mwm_foreach_test.cpp
index fdf53eaeee..17a015b930 100644
--- a/map/mwm_tests/mwm_foreach_test.cpp
+++ b/map/mwm_tests/mwm_foreach_test.cpp
@@ -78,7 +78,7 @@ class IntersectCheck
bool m_isPrev, m_intersect;
public:
- IntersectCheck(m2::RectD const & r)
+ explicit IntersectCheck(m2::RectD const & r)
: m_rect(r), m_isPrev(false), m_intersect(false)
{
}
diff --git a/map/style_tests/style_symbols_consistency_test.cpp b/map/style_tests/style_symbols_consistency_test.cpp
index 130fc24832..0479fa5641 100644
--- a/map/style_tests/style_symbols_consistency_test.cpp
+++ b/map/style_tests/style_symbols_consistency_test.cpp
@@ -37,7 +37,7 @@ namespace
class SdfParsingDispatcher
{
public:
- SdfParsingDispatcher(set<string> & symbols)
+ explicit SdfParsingDispatcher(set<string> & symbols)
: m_symbols(symbols)
{}
diff --git a/map/user_mark.hpp b/map/user_mark.hpp
index 0081e64f4f..68d413b9d6 100644
--- a/map/user_mark.hpp
+++ b/map/user_mark.hpp
@@ -132,7 +132,7 @@ private:
class DebugMarkPoint : public UserMark
{
public:
- DebugMarkPoint(m2::PointD const & ptOrg);
+ explicit DebugMarkPoint(m2::PointD const & ptOrg);
drape_ptr<SymbolNameZoomInfo> GetSymbolNames() const override;
};
@@ -140,7 +140,7 @@ public:
class ColoredMarkPoint : public UserMark
{
public:
- ColoredMarkPoint(m2::PointD const & ptOrg);
+ explicit ColoredMarkPoint(m2::PointD const & ptOrg);
void SetColor(dp::Color const & color);
void SetRadius(float radius);