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/fetch.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bpkg/fetch.cxx') 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 -- cgit v1.1