aboutsummaryrefslogtreecommitdiff
path: root/bpkg/fetch.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/fetch.cxx
parentda81a95f765302959ccc8293d0b1d566b5234297 (diff)
Adopt to auto_fd introduced to libbutl fdstreams and process
Diffstat (limited to 'bpkg/fetch.cxx')
-rw-r--r--bpkg/fetch.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/bpkg/fetch.cxx b/bpkg/fetch.cxx
index efb2632..47f4f9b 100644
--- a/bpkg/fetch.cxx
+++ b/bpkg/fetch.cxx
@@ -48,7 +48,7 @@ namespace bpkg
try
{
- ifdstream is (pr.in_ofd, fdstream_mode::skip);
+ ifdstream is (move (pr.in_ofd), fdstream_mode::skip);
getline (is, l);
is.close ();
@@ -192,7 +192,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);
@@ -307,7 +307,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);
@@ -588,7 +588,7 @@ namespace bpkg
// calculation, then use the binary data to create the text stream for
// the manifest parsing.
//
- ifdstream is (pr.in_ofd, fdstream_mode::binary);
+ ifdstream is (move (pr.in_ofd), fdstream_mode::binary);
stringstream bs (ios::in | ios::out | ios::binary);
// Note that the eof check is important: if the stream is at eof, write