diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-11-03 00:49:14 +0300 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:37 +0200 |
commit | d933699b4dd106c227f8d07a2471d5f39f1c82af (patch) | |
tree | 4f6c6f962b4d0aaf7c5439d440f6376ebbb7deb0 /build2/cc/link.cxx | |
parent | e4feb8be8bc8667b62574da521cd53ebc94b4afc (diff) |
Adopt to auto_fd introduced to libbutl fdstreams and process
Diffstat (limited to 'build2/cc/link.cxx')
-rw-r--r-- | build2/cc/link.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build2/cc/link.cxx b/build2/cc/link.cxx index 7722c4f..cf284e1 100644 --- a/build2/cc/link.cxx +++ b/build2/cc/link.cxx @@ -947,7 +947,7 @@ namespace build2 try { - ofdstream os (pr.out_fd); + ofdstream os (move (pr.out_fd)); // 1 is resource ID, 24 is RT_MANIFEST. We also need to escape // Windows path backslashes. @@ -1475,7 +1475,8 @@ namespace build2 { try { - ifdstream is (pr.in_ofd, fdstream_mode::text, ifdstream::badbit); + ifdstream is ( + move (pr.in_ofd), fdstream_mode::text, ifdstream::badbit); msvc_filter_link (is, t, lt); |