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/process_io.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/winapi/process_io.hpp') diff --git a/include/winapi/process_io.hpp b/include/winapi/process_io.hpp index 9df145c..9da442f 100644 --- a/include/winapi/process_io.hpp +++ b/include/winapi/process_io.hpp @@ -9,7 +9,7 @@ #include "path.hpp" #include "pipe.hpp" -#include +#include #include namespace winapi { @@ -26,7 +26,7 @@ struct Stdin : Stream { /** No redirection. */ Stdin(); /** Make child process read form a file. */ - explicit Stdin(const std::string& file); + explicit Stdin(std::string_view file); /** @overload */ explicit Stdin(const CanonicalPath& file); /** Make child process read form a pipe. */ @@ -38,7 +38,7 @@ struct Stdout : Stream { /** No redirection. */ Stdout(); /** Redirect child process's stdout to a file. */ - explicit Stdout(const std::string& file); + explicit Stdout(std::string_view file); /** @overload */ explicit Stdout(const CanonicalPath& file); /** Redirect child process's stdout to a pipe. */ @@ -50,7 +50,7 @@ struct Stderr : Stream { /** No redirection. */ Stderr(); /** Redirect child process's stderr to a file. */ - explicit Stderr(const std::string& file); + explicit Stderr(std::string_view file); /** @overload */ explicit Stderr(const CanonicalPath& file); /** Redirect child process's stderr to a pipe. */ -- cgit v1.3