From 90ee5317a15cb51960b19b76e421725cf0e68dbe Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Tue, 22 Mar 2022 12:17:41 +0100 Subject: void copy of std::filesystem::path --- zenstore/basicfile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zenstore/basicfile.cpp') diff --git a/zenstore/basicfile.cpp b/zenstore/basicfile.cpp index 7d5b659c9..fd0c8a8f6 100644 --- a/zenstore/basicfile.cpp +++ b/zenstore/basicfile.cpp @@ -29,7 +29,7 @@ BasicFile::~BasicFile() } void -BasicFile::Open(std::filesystem::path FileName, bool IsCreate) +BasicFile::Open(const std::filesystem::path& FileName, bool IsCreate) { std::error_code Ec; Open(FileName, IsCreate, Ec); @@ -41,7 +41,7 @@ BasicFile::Open(std::filesystem::path FileName, bool IsCreate) } void -BasicFile::Open(std::filesystem::path FileName, bool IsCreate, std::error_code& Ec) +BasicFile::Open(const std::filesystem::path& FileName, bool IsCreate, std::error_code& Ec) { Ec.clear(); -- cgit v1.2.3