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-03-20 14:01:00 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:41:24 +0300
commitf7203eb9b75a01270d63e74e8eccebdf531c5742 (patch)
tree7b7a8ad4e92f21f9feee06548f2d134c5df93465 /indexer/classificator_loader.cpp
parentc427ac965987265c62761de2f822fd90be606e1a (diff)
implemented ChangeColorScheme functionality and its test for supported platforms
Diffstat (limited to 'indexer/classificator_loader.cpp')
-rw-r--r--indexer/classificator_loader.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/indexer/classificator_loader.cpp b/indexer/classificator_loader.cpp
index 9015a63552..2b4e1cb333 100644
--- a/indexer/classificator_loader.cpp
+++ b/indexer/classificator_loader.cpp
@@ -2,8 +2,6 @@
#include "classificator.hpp"
#include "drawing_rules.hpp"
-#include "../defines.hpp"
-
#include "../platform/platform.hpp"
#include "../coding/reader_streambuf.hpp"
@@ -13,7 +11,7 @@
#include "../std/iostream.hpp"
-namespace classificator
+namespace
{
void ReadCommon(Reader * classificator,
Reader * types)
@@ -37,7 +35,10 @@ namespace classificator
c.ReadTypesMapping(s);
}
}
+}
+namespace classificator
+{
void Load()
{
LOG(LDEBUG, ("Reading of classificator started"));
@@ -47,13 +48,7 @@ namespace classificator
ReadCommon(p.GetReader("classificator.txt"),
p.GetReader("types.txt"));
- //LOG(LINFO, ("Reading of drawing rules"));
- drule::RulesHolder & rules = drule::rules();
-
- // Load from proto buffer binary file.
- string buffer;
- ModelReaderPtr(p.GetReader(DRAWING_RULES_BIN_FILE)).ReadAsString(buffer);
- rules.LoadFromBinaryProto(buffer);
+ drule::LoadRules();
LOG(LDEBUG, ("Reading of classificator finished"));
}