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
diff options
context:
space:
mode:
authorConstantin Shalnev <c.shalnev@corp.mail.ru>2015-09-11 11:52:00 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:04:21 +0300
commitaef75ebb1df691823a585dfd8172157cd5ddf8a4 (patch)
treed1914a551b696c31ca67907e9a3001fcafe14dc1 /indexer/map_style_reader.cpp
parent8afbffcd261f5e3542a98adf9bce4e8c98830669 (diff)
Fixed note
Diffstat (limited to 'indexer/map_style_reader.cpp')
-rw-r--r--indexer/map_style_reader.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/indexer/map_style_reader.cpp b/indexer/map_style_reader.cpp
index bb5a570834..feab3d0946 100644
--- a/indexer/map_style_reader.cpp
+++ b/indexer/map_style_reader.cpp
@@ -12,38 +12,38 @@
namespace
{
-char const * const MAP_STYLE_KEY = "MapStyleKeyV1";
+char const * const kMapStyleKey = "MapStyleKeyV1";
-const char * const SUFFIX_LEGACY_LIGHT = "";
-const char * const SUFFIX_LEGACY_DARK = "_dark";
-const char * const SUFFIX_MODERN_CLEAR = "_clear";
+const char * const kSuffixLegacyLight = "";
+const char * const kSuffixLegacyDark = "_dark";
+const char * const kSuffixModernClear = "_clear";
string GetStyleSuffix(MapStyle mapStyle)
{
switch (mapStyle)
{
case MapStyleLight:
- return SUFFIX_LEGACY_LIGHT;
+ return kSuffixLegacyLight;
case MapStyleDark:
- return SUFFIX_LEGACY_DARK;
+ return kSuffixLegacyDark;
case MapStyleClear:
- return SUFFIX_MODERN_CLEAR;
+ return kSuffixModernClear;
}
LOG(LWARNING, ("Unknown map style", mapStyle));
- return SUFFIX_MODERN_CLEAR;
+ return kSuffixModernClear;
}
} // namespace
void StyleReader::SetCurrentStyle(MapStyle mapStyle)
{
- Settings::Set(MAP_STYLE_KEY, static_cast<int>(mapStyle));
+ Settings::Set(kMapStyleKey, static_cast<int>(mapStyle));
}
MapStyle StyleReader::GetCurrentStyle()
{
int mapStyle;
- if (!Settings::Get(MAP_STYLE_KEY, mapStyle))
+ if (!Settings::Get(kMapStyleKey, mapStyle))
mapStyle = MapStyleClear;
return static_cast<MapStyle>(mapStyle);
}