From 02de5923e7e26da9584f018e97023eb6ca619360 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 12 Aug 2019 17:30:53 +0200 Subject: Use new fdstream constructor --- libbuild2/in/rule.cxx | 2 +- libbuild2/test/script/runner.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libbuild2/in/rule.cxx b/libbuild2/in/rule.cxx index bdc9b24..434250e 100644 --- a/libbuild2/in/rule.cxx +++ b/libbuild2/in/rule.cxx @@ -270,7 +270,7 @@ namespace build2 try { what = "open"; whom = &ip; - ifdstream ifs (ip, fdopen_mode::in, ifdstream::badbit); + ifdstream ifs (ip, ifdstream::badbit); // See fdopen() for details (umask, etc). // diff --git a/libbuild2/test/script/runner.cxx b/libbuild2/test/script/runner.cxx index a1eb9ec..f0c089b 100644 --- a/libbuild2/test/script/runner.cxx +++ b/libbuild2/test/script/runner.cxx @@ -85,7 +85,7 @@ namespace build2 { try { - ifdstream is (p, ifdstream::in, ifdstream::badbit); + ifdstream is (p, ifdstream::badbit); if (is.peek () != ifdstream::traits_type::eof ()) { @@ -628,7 +628,7 @@ namespace build2 // Also note that we strip the trailing CR characters (otherwise // can mismatch when cross-test). // - ifdstream is (op, ifdstream::in, ifdstream::badbit); + ifdstream is (op, ifdstream::badbit); is.peek (); // Sets eofbit for an empty stream. while (!is.eof ()) -- cgit v1.1