aboutsummaryrefslogtreecommitdiff
path: root/zenserver-test/zenserver-test.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-11-16 14:25:56 +0100
committerMartin Ridgers <[email protected]>2021-11-16 14:32:21 +0100
commit7875efb57617dc7772da4dcad82b1fb6aacf648c (patch)
tree0ab803e6fde2e093e495a91dd030ff2540a06823 /zenserver-test/zenserver-test.cpp
parentRenamed operator<<(bool) to AppendBool() to avoid subtle errors (diff)
downloadzen-7875efb57617dc7772da4dcad82b1fb6aacf648c.tar.xz
zen-7875efb57617dc7772da4dcad82b1fb6aacf648c.zip
ToUtf8() -> PathToUtf8() as the latter is less ambiguous
Diffstat (limited to 'zenserver-test/zenserver-test.cpp')
-rw-r--r--zenserver-test/zenserver-test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zenserver-test/zenserver-test.cpp b/zenserver-test/zenserver-test.cpp
index 0934f9553..bc955727a 100644
--- a/zenserver-test/zenserver-test.cpp
+++ b/zenserver-test/zenserver-test.cpp
@@ -2231,7 +2231,7 @@ struct RemoteExecutionRequest
for (const auto& Kv : m_Visit.m_Files)
{
PrepReq.BeginObject();
- PrepReq << "file" << zen::ToUtf8(Kv.first) << "size" << Kv.second.Size << "hash" << Kv.second.Hash;
+ PrepReq << "file" << zen::PathToUtf8(Kv.first) << "size" << Kv.second.Size << "hash" << Kv.second.Hash;
PrepReq.EndObject();
}
PrepReq.EndArray();
@@ -2301,7 +2301,7 @@ private:
zen::IoHash Hash = Ios.GetHash();
auto RelativePath = FullPath.lexically_relative(m_RootPath).native();
- // ZEN_INFO("File: {:32} => {} ({})", zen::ToUtf8(RelativePath), Hash, FileSize);
+ // ZEN_INFO("File: {:32} => {} ({})", zen::PathToUtf8(RelativePath), Hash, FileSize);
FileEntry& Entry = m_Files[RelativePath];
Entry.Hash = Hash;