diff options
author | vng <viktor.govako@gmail.com> | 2012-02-06 18:27:09 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:33:12 +0300 |
commit | db74ea08f6e392ae496852a110bbed7e361f7a31 (patch) | |
tree | 8c310d0b9bf0f16c0ef447422d45f967a23257c9 /indexer/classificator_loader.cpp | |
parent | 9748df36ed5ca260e6f950de85ada29a82333d20 (diff) |
[search] Use protobuf in lite mode for production configuration.
Diffstat (limited to 'indexer/classificator_loader.cpp')
-rw-r--r-- | indexer/classificator_loader.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indexer/classificator_loader.cpp b/indexer/classificator_loader.cpp index 8056597f22..ba23a21e8e 100644 --- a/indexer/classificator_loader.cpp +++ b/indexer/classificator_loader.cpp @@ -68,10 +68,12 @@ namespace classificator #if defined(OMIM_PRODUCTION) || defined(USE_BINARY_STYLES) // Load from proto buffer binary file. - ReaderStreamBuf buffer(p.GetReader(DRAWING_RULES_BIN_FILE)); + ModelReaderPtr reader(p.GetReader(DRAWING_RULES_BIN_FILE)); - istream s(&buffer); - rules.LoadFromBinaryProto(s); + string buffer; + reader.ReadAsString(buffer); + + rules.LoadFromBinaryProto(buffer); #else // Load from proto buffer text file. string buffer; |