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 /src/process_io.cpp | |
| 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 'src/process_io.cpp')
| -rw-r--r-- | src/process_io.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/process_io.cpp b/src/process_io.cpp index 149081b..1162049 100644 --- a/src/process_io.cpp +++ b/src/process_io.cpp @@ -8,7 +8,7 @@ #include <winapi/path.hpp> #include <winapi/process_io.hpp> -#include <string> +#include <string_view> #include <utility> namespace winapi { @@ -20,15 +20,15 @@ Stdout::Stdout() : Stream{Handle::std_out()} {} Stderr::Stderr() : Stream{Handle::std_err()} {} -Stdin::Stdin(const std::string& path) : Stream{File::open_r(path)} {} +Stdin::Stdin(std::string_view path) : Stream{File::open_r(path)} {} Stdin::Stdin(const CanonicalPath& path) : Stream{File::open_r(path)} {} -Stdout::Stdout(const std::string& path) : Stream{File::open_w(path)} {} +Stdout::Stdout(std::string_view path) : Stream{File::open_w(path)} {} Stdout::Stdout(const CanonicalPath& path) : Stream{File::open_w(path)} {} -Stderr::Stderr(const std::string& path) : Stream{File::open_w(path)} {} +Stderr::Stderr(std::string_view path) : Stream{File::open_w(path)} {} Stderr::Stderr(const CanonicalPath& path) : Stream{File::open_w(path)} {} |
