diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-04 22:39:44 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-04 22:42:12 +0200 |
| commit | 7fcbd6e474235957f2785c3d9b5344b2acf3ff77 (patch) | |
| tree | 4c1a2d5971a9db5330963ac7d77501638efeb4c0 /include/winapi/file.hpp | |
| parent | upgrade to `using` instead of typedef (diff) | |
| download | winapi-common-7fcbd6e474235957f2785c3d9b5344b2acf3ff77.tar.gz winapi-common-7fcbd6e474235957f2785c3d9b5344b2acf3ff77.zip | |
upgrade to std::string_view
Diffstat (limited to '')
| -rw-r--r-- | include/winapi/file.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
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 <cstddef> #include <functional> -#include <string> +#include <string_view> #include <utility> 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&); |
