diff --git a/drape_frontend/route_renderer.cpp b/drape_frontend/route_renderer.cpp index dbd295f4b1..7af0e0deb7 100644 --- a/drape_frontend/route_renderer.cpp +++ b/drape_frontend/route_renderer.cpp @@ -16,10 +16,10 @@ namespace df { -std::string kRouteColor = "Route"; -std::string kRouteOutlineColor = "RouteOutline"; -std::string kRoutePedestrian = "RoutePedestrian"; -std::string kRouteBicycle = "RouteBicycle"; +std::string const kRouteColor = "Route"; +std::string const kRouteOutlineColor = "RouteOutline"; +std::string const kRoutePedestrian = "RoutePedestrian"; +std::string const kRouteBicycle = "RouteBicycle"; namespace { diff --git a/drape_frontend/route_renderer.hpp b/drape_frontend/route_renderer.hpp index 47e08c4e06..025b76f66a 100644 --- a/drape_frontend/route_renderer.hpp +++ b/drape_frontend/route_renderer.hpp @@ -12,10 +12,10 @@ namespace df { -extern std::string kRouteColor; -extern std::string kRouteOutlineColor; -extern std::string kRoutePedestrian; -extern std::string kRouteBicycle; +extern std::string const kRouteColor; +extern std::string const kRouteOutlineColor; +extern std::string const kRoutePedestrian; +extern std::string const kRouteBicycle; class RouteRenderer final { diff --git a/indexer/drawing_rules.cpp b/indexer/drawing_rules.cpp index 52e57b5ebc..bab36bc230 100644 --- a/indexer/drawing_rules.cpp +++ b/indexer/drawing_rules.cpp @@ -174,7 +174,7 @@ uint32_t RulesHolder::GetBgColor(int scale) const uint32_t RulesHolder::GetColor(std::string const & name) const { - auto it = m_colors.find(name); + auto const it = m_colors.find(name); if (it == m_colors.end()) { LOG(LWARNING, ("Requested color '" + name + "' is not found"));