aboutsummaryrefslogtreecommitdiff
path: root/bpkg/checksum.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-11-03 00:50:07 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-11-03 00:50:07 +0300
commitaea4e5401af4e28a32d99e0e3c2ecd42888c2ba4 (patch)
tree161c99fc55f09e6c124f28dff44f6bd6c7f36295 /bpkg/checksum.cxx
parentda81a95f765302959ccc8293d0b1d566b5234297 (diff)
Adopt to auto_fd introduced to libbutl fdstreams and process
Diffstat (limited to 'bpkg/checksum.cxx')
-rw-r--r--bpkg/checksum.cxx12
1 files changed, 6 insertions, 6 deletions
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.