From 475d8b4d847891c93c22ee9b76345605f1b35158 Mon Sep 17 00:00:00 2001 From: Lev Dragunov Date: Tue, 29 Jan 2019 14:02:43 +0300 Subject: [PATCH] formatting fix --- .../engine/datafacade/contiguous_internalmem_datafacade.hpp | 2 +- src/storage/storage.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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()); } }