From 7fcbd6e474235957f2785c3d9b5344b2acf3ff77 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 4 Jun 2026 22:39:44 +0200 Subject: upgrade to std::string_view --- include/winapi/file.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/winapi/file.hpp') diff --git a/include/winapi/file.hpp b/include/winapi/file.hpp index b1c8ce3..4ec717b 100644 --- a/include/winapi/file.hpp +++ b/include/winapi/file.hpp @@ -14,7 +14,7 @@ #include #include -#include +#include #include namespace winapi { @@ -38,20 +38,20 @@ public: }; /** Open file for reading. */ - static File open_r(const std::string&); + static File open_r(std::string_view); /** @overload */ static File open_r(const CanonicalPath&); /** Open file for reading (inc. ability to read its attributes). */ - static File open_read_attributes(const std::string&); + static File open_read_attributes(std::string_view); /** @overload */ static File open_read_attributes(const CanonicalPath&); /** Open file for writing. */ - static File open_w(const std::string&); + static File open_w(std::string_view); /** @overload */ static File open_w(const CanonicalPath&); /** Delete a file. */ - static void remove(const std::string&); + static void remove(std::string_view); /** @overload */ static void remove(const CanonicalPath&); -- cgit v1.3