diff --git a/include/engine/datafacade/contiguous_internalmem_datafacade.hpp b/include/engine/datafacade/contiguous_internalmem_datafacade.hpp index 9bbf0f859..899fb86d6 100644 --- a/include/engine/datafacade/contiguous_internalmem_datafacade.hpp +++ b/include/engine/datafacade/contiguous_internalmem_datafacade.hpp @@ -437,7 +437,7 @@ class ContiguousInternalMemoryDataFacadeBase : public BaseDataFacade std::string GetTimestamp() const override final { - return std::string(m_data_timestamp.begin(), m_data_timestamp.end()); + return std::string(m_data_timestamp.begin(), m_data_timestamp.end()); } GeometryID GetGeometryIndex(const NodeID id) const override final diff --git a/src/storage/storage.cpp b/src/storage/storage.cpp index 35b59c896..e3d5ede2b 100644 --- a/src/storage/storage.cpp +++ b/src/storage/storage.cpp @@ -407,7 +407,8 @@ void Storage::PopulateStaticData(const SharedDataIndex &index) auto timestamp_ref = make_timestamp_view(index, "/common/timestamp"); std::string ts; extractor::files::readTimestamp(config.GetPath(".osrm.timestamp"), ts); - if (!ts.empty()) { + if (!ts.empty()) + { memcpy(const_cast(timestamp_ref.data()), ts.data(), ts.size()); } }