diff options
author | vng <viktor.govako@gmail.com> | 2012-02-09 14:36:00 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:33:38 +0300 |
commit | 6ae8b3c3cdac9cd3bfd5bd19375eb722509f93b1 (patch) | |
tree | 8d58d2b00ef01031846e9ea06c826148b294b13c /indexer/string_file.cpp | |
parent | 8e34c67e6b3a38f1e1dc5515584b499564617cb3 (diff) |
Replace ReadRaw with ReadVectorOfPOD. Add tests.
Diffstat (limited to 'indexer/string_file.cpp')
-rw-r--r-- | indexer/string_file.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/string_file.cpp b/indexer/string_file.cpp index 2283552497..b51532abc3 100644 --- a/indexer/string_file.cpp +++ b/indexer/string_file.cpp @@ -17,7 +17,7 @@ StringsFile::IdT StringsFile::StringT::Write(TWriter & writer) const CHECK_EQUAL(static_cast<uint64_t>(pos), writer.Pos(), ()); rw::Write(writer, m_name); - rw::WriteRaw(writer, m_val); + rw::WriteVectorOfPOD(writer, m_val); return pos; } @@ -26,7 +26,7 @@ template <class TReader> void StringsFile::StringT::Read(TReader & src) { rw::Read(src, m_name); - rw::ReadRaw(src, m_val); + rw::ReadVectorOfPOD(src, m_val); } bool StringsFile::StringT::operator < (StringT const & name) const |