formatting fix
This commit is contained in:
parent
65acbae808
commit
475d8b4d84
@ -437,7 +437,7 @@ class ContiguousInternalMemoryDataFacadeBase : public BaseDataFacade
|
|||||||
|
|
||||||
std::string GetTimestamp() const override final
|
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
|
GeometryID GetGeometryIndex(const NodeID id) const override final
|
||||||
|
|||||||
@ -407,7 +407,8 @@ void Storage::PopulateStaticData(const SharedDataIndex &index)
|
|||||||
auto timestamp_ref = make_timestamp_view(index, "/common/timestamp");
|
auto timestamp_ref = make_timestamp_view(index, "/common/timestamp");
|
||||||
std::string ts;
|
std::string ts;
|
||||||
extractor::files::readTimestamp(config.GetPath(".osrm.timestamp"), ts);
|
extractor::files::readTimestamp(config.GetPath(".osrm.timestamp"), ts);
|
||||||
if (!ts.empty()) {
|
if (!ts.empty())
|
||||||
|
{
|
||||||
memcpy(const_cast<char *>(timestamp_ref.data()), ts.data(), ts.size());
|
memcpy(const_cast<char *>(timestamp_ref.data()), ts.data(), ts.size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user