aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/stream.cpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-10-16 23:45:36 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-10-16 23:45:36 +0300
commit73c5cc279f6252afcefd30b40d67b7bbb5b540de (patch)
tree4c03402c126ab54955e6bffcc3462105e2661db6 /src/stream.cpp
parentCommandLine: saner API (diff)
downloadwinapi-common-73c5cc279f6252afcefd30b40d67b7bbb5b540de.tar.gz
winapi-common-73c5cc279f6252afcefd30b40d67b7bbb5b540de.zip
File: refactoring
Diffstat (limited to '')
-rw-r--r--src/stream.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/stream.cpp b/src/stream.cpp
index f9285e6..76dd5a5 100644
--- a/src/stream.cpp
+++ b/src/stream.cpp
@@ -20,17 +20,17 @@ Stdout::Stdout() : Stream{Handle::std_out()} {}
Stderr::Stderr() : Stream{Handle::std_err()} {}
-Stdin::Stdin(const std::string& path) : Stream{File::open_for_reading(path)} {}
+Stdin::Stdin(const std::string& path) : Stream{File::open_r(path)} {}
-Stdin::Stdin(const CanonicalPath& path) : Stream{File::open_for_reading(path)} {}
+Stdin::Stdin(const CanonicalPath& path) : Stream{File::open_r(path)} {}
-Stdout::Stdout(const std::string& path) : Stream{File::open_for_writing(path)} {}
+Stdout::Stdout(const std::string& path) : Stream{File::open_w(path)} {}
-Stdout::Stdout(const CanonicalPath& path) : Stream{File::open_for_writing(path)} {}
+Stdout::Stdout(const CanonicalPath& path) : Stream{File::open_w(path)} {}
-Stderr::Stderr(const std::string& path) : Stream{File::open_for_writing(path)} {}
+Stderr::Stderr(const std::string& path) : Stream{File::open_w(path)} {}
-Stderr::Stderr(const CanonicalPath& path) : Stream{File::open_for_writing(path)} {}
+Stderr::Stderr(const CanonicalPath& path) : Stream{File::open_w(path)} {}
Stdin::Stdin(Pipe& pipe) : Stream{std::move(pipe.read_end())} {
pipe.write_end().dont_inherit();