diff options
| author | Martin Ridgers <[email protected]> | 2021-11-16 14:25:56 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-11-16 14:32:21 +0100 |
| commit | 7875efb57617dc7772da4dcad82b1fb6aacf648c (patch) | |
| tree | 0ab803e6fde2e093e495a91dd030ff2540a06823 /zenserver/projectstore.cpp | |
| parent | Renamed operator<<(bool) to AppendBool() to avoid subtle errors (diff) | |
| download | zen-7875efb57617dc7772da4dcad82b1fb6aacf648c.tar.xz zen-7875efb57617dc7772da4dcad82b1fb6aacf648c.zip | |
ToUtf8() -> PathToUtf8() as the latter is less ambiguous
Diffstat (limited to 'zenserver/projectstore.cpp')
| -rw-r--r-- | zenserver/projectstore.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zenserver/projectstore.cpp b/zenserver/projectstore.cpp index 899080696..bf2609672 100644 --- a/zenserver/projectstore.cpp +++ b/zenserver/projectstore.cpp @@ -117,7 +117,7 @@ struct ProjectStore::OplogStorage : public RefCounted #if USE_ROCKSDB { - std::string RocksdbPath = ToUtf8(m_OplogStoragePath / "ops.rdb"); + std::string RocksdbPath = PathToUtf8(m_OplogStoragePath / "ops.rdb"); ZEN_DEBUG("opening rocksdb db at '{}'", RocksdbPath); @@ -629,7 +629,7 @@ ProjectStore::Project::Write() CbObjectWriter Cfg; Cfg << "id" << Identifier; - Cfg << "root" << ToUtf8(RootDir); + Cfg << "root" << PathToUtf8(RootDir); Cfg << "project" << ProjectRootDir; Cfg << "engine" << EngineRootDir; @@ -1630,7 +1630,7 @@ HttpProjectService::HttpProjectService(CidStore& Store, ProjectStore* Projects) const ProjectStore::Project& Prj = *ProjectIt; CbObjectWriter Response; - Response << "id" << Prj.Identifier << "root" << ToUtf8(Prj.RootDir); + Response << "id" << Prj.Identifier << "root" << PathToUtf8(Prj.RootDir); Response.BeginArray("oplogs"sv); Prj.IterateOplogs([&](const ProjectStore::Oplog& I) { Response << "id"sv << I.OplogId(); }); |