aboutsummaryrefslogtreecommitdiff
path: root/zenstore/include
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-03-22 12:17:41 +0100
committerDan Engelbrecht <[email protected]>2022-03-31 11:28:33 +0200
commit90ee5317a15cb51960b19b76e421725cf0e68dbe (patch)
treeb763a2698580b5da510b58b857551a018fd04718 /zenstore/include
parentGC cleanup (diff)
downloadzen-90ee5317a15cb51960b19b76e421725cf0e68dbe.tar.xz
zen-90ee5317a15cb51960b19b76e421725cf0e68dbe.zip
void copy of std::filesystem::path
Diffstat (limited to 'zenstore/include')
-rw-r--r--zenstore/include/zenstore/basicfile.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/zenstore/include/zenstore/basicfile.h b/zenstore/include/zenstore/basicfile.h
index 0837412de..30bb4ee8f 100644
--- a/zenstore/include/zenstore/basicfile.h
+++ b/zenstore/include/zenstore/basicfile.h
@@ -31,8 +31,8 @@ public:
BasicFile(const BasicFile&) = delete;
BasicFile& operator=(const BasicFile&) = delete;
- void Open(std::filesystem::path FileName, bool IsCreate);
- void Open(std::filesystem::path FileName, bool IsCreate, std::error_code& Ec);
+ void Open(const std::filesystem::path& FileName, bool IsCreate);
+ void Open(const std::filesystem::path& FileName, bool IsCreate, std::error_code& Ec);
void Close();
void Read(void* Data, uint64_t Size, uint64_t FileOffset);
void StreamFile(std::function<void(const void* Data, uint64_t Size)>&& ChunkFun);