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:
authorvng <viktor.govako@gmail.com>2012-02-06 20:51:13 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:33:15 +0300
commitf894f49017cfed69e54b2eade7f79906c24b8022 (patch)
tree310563c5373ada2d80bb8f49b33a763c7e8ecdc3 /indexer/classificator_loader.cpp
parentae9a2d2a72b5e5dbbf5656de3b1f54517ec184fa (diff)
[styles] New changes from AK.
Diffstat (limited to 'indexer/classificator_loader.cpp')
-rw-r--r--indexer/classificator_loader.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/indexer/classificator_loader.cpp b/indexer/classificator_loader.cpp
index ba23a21e8e..27f65bb984 100644
--- a/indexer/classificator_loader.cpp
+++ b/indexer/classificator_loader.cpp
@@ -68,12 +68,11 @@ namespace classificator
#if defined(OMIM_PRODUCTION) || defined(USE_BINARY_STYLES)
// Load from proto buffer binary file.
- ModelReaderPtr reader(p.GetReader(DRAWING_RULES_BIN_FILE));
-
string buffer;
- reader.ReadAsString(buffer);
+ ModelReaderPtr(p.GetReader(DRAWING_RULES_BIN_FILE)).ReadAsString(buffer);
- rules.LoadFromBinaryProto(buffer);
+ istream s(&buffer);
+ rules.LoadFromBinaryProto(s);
#else
// Load from proto buffer text file.
string buffer;