From 5c330068e75946286e8e0d3dc0bd381e419074a9 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Wed, 4 Jan 2023 15:16:36 +0100 Subject: Namespaces for API --- tempfile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tempfile.cpp') diff --git a/tempfile.cpp b/tempfile.cpp index f425db2..ca87d9b 100644 --- a/tempfile.cpp +++ b/tempfile.cpp @@ -9,12 +9,12 @@ namespace fs = std::filesystem; using namespace std::string_literals; -fs::path Tempfile::GetPath() const +fs::path Reichwein::Tempfile::GetPath() const { return m_path; } -Tempfile::Tempfile(const std::filesystem::path& extension) +Reichwein::Tempfile::Tempfile(const std::filesystem::path& extension) { try { fs::path path { fs::temp_directory_path() / "tempfileXXXXXX"}; @@ -32,7 +32,7 @@ Tempfile::Tempfile(const std::filesystem::path& extension) } } -Tempfile::~Tempfile() +Reichwein::Tempfile::~Tempfile() { try { fs::remove_all(m_path); -- cgit v1.2.3