From aea4e5401af4e28a32d99e0e3c2ecd42888c2ba4 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 3 Nov 2016 00:50:07 +0300 Subject: Adopt to auto_fd introduced to libbutl fdstreams and process --- bpkg/checksum.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bpkg/checksum.cxx') diff --git a/bpkg/checksum.cxx b/bpkg/checksum.cxx index fc66ccb..1254749 100644 --- a/bpkg/checksum.cxx +++ b/bpkg/checksum.cxx @@ -39,7 +39,7 @@ namespace bpkg try { - ifdstream is (pr.in_ofd); + ifdstream is (move (pr.in_ofd)); string l; getline (is, l); @@ -108,7 +108,7 @@ namespace bpkg try { - ifdstream is (pr.in_ofd, fdstream_mode::skip); + ifdstream is (move (pr.in_ofd), fdstream_mode::skip); string l; getline (is, l); @@ -174,7 +174,7 @@ namespace bpkg try { - ifdstream is (pr.in_ofd); + ifdstream is (move (pr.in_ofd)); string l; getline (is, l); @@ -318,7 +318,7 @@ namespace bpkg // Prevent any data modifications on the way to the hashing program. // - fdmode (pr.out_fd, fdstream_mode::binary); + fdmode (pr.out_fd.get (), fdstream_mode::binary); return pr; } catch (const process_error& e) @@ -339,8 +339,8 @@ namespace bpkg try { - ifdstream is (pr.in_ofd, fdstream_mode::skip); - ofdstream os (pr.out_fd); + ifdstream is (move (pr.in_ofd), fdstream_mode::skip); + ofdstream os (move (pr.out_fd)); // Note that the eof check is important: if the stream is at eof, write // will fail. -- cgit v1.1