Do not copy string map (DOH!).

This commit is contained in:
Bartosz Taudul 2017-09-30 17:09:00 +02:00
parent f387a16e61
commit fc8cd12088
2 changed files with 2 additions and 2 deletions

View File

@ -1652,7 +1652,7 @@ void View::WriteTimeline( FileWrite& f, const Vector<Event*>& vec )
} }
} }
void View::ReadTimeline( FileRead& f, Vector<Event*>& vec, Event* parent, const std::unordered_map<uint64_t, const char*> stringMap ) void View::ReadTimeline( FileRead& f, Vector<Event*>& vec, Event* parent, const std::unordered_map<uint64_t, const char*>& stringMap )
{ {
uint64_t sz; uint64_t sz;
f.Read( &sz, sizeof( sz ) ); f.Read( &sz, sizeof( sz ) );

View File

@ -98,7 +98,7 @@ private:
void Write( FileWrite& f ); void Write( FileWrite& f );
void WriteTimeline( FileWrite& f, const Vector<Event*>& vec ); void WriteTimeline( FileWrite& f, const Vector<Event*>& vec );
void ReadTimeline( FileRead& f, Vector<Event*>& vec, Event* parent, const std::unordered_map<uint64_t, const char*> stringMap ); void ReadTimeline( FileRead& f, Vector<Event*>& vec, Event* parent, const std::unordered_map<uint64_t, const char*>& stringMap );
std::string m_addr; std::string m_addr;