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/path.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 'include/winapi/path.hpp')
| -rw-r--r-- | include/winapi/path.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/winapi/path.hpp b/include/winapi/path.hpp index 26d89ce..8de2559 100644 --- a/include/winapi/path.hpp +++ b/include/winapi/path.hpp @@ -13,9 +13,9 @@ namespace winapi { class CanonicalPath { public: /** Make an absolute, canonical path. */ - static std::string canonicalize(const std::string&); + static std::string canonicalize(std::string_view); - explicit CanonicalPath(const std::string&); + explicit CanonicalPath(std::string_view); std::string get() const { return m_path; } std::string path() const { return get(); } |
