From 7ce74ce206065c3af0035583330b3c773086f21c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 3 Nov 2016 00:44:53 +0300 Subject: Invent auto_fd, make use of it in fdstreams and process --- butl/process.ixx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'butl/process.ixx') diff --git a/butl/process.ixx b/butl/process.ixx index 6d4dd2f..1bc259c 100644 --- a/butl/process.ixx +++ b/butl/process.ixx @@ -139,9 +139,9 @@ namespace butl process (process&& p) : handle (p.handle), status (p.status), - out_fd (p.out_fd), - in_ofd (p.in_ofd), - in_efd (p.in_efd) + out_fd (std::move (p.out_fd)), + in_ofd (std::move (p.in_ofd)), + in_efd (std::move (p.in_efd)) { p.handle = 0; } @@ -156,9 +156,9 @@ namespace butl handle = p.handle; status = std::move (p.status); - out_fd = p.out_fd; - in_ofd = p.in_ofd; - in_efd = p.in_efd; + out_fd = std::move (p.out_fd); + in_ofd = std::move (p.in_ofd); + in_efd = std::move (p.in_efd); p.handle = 0; } -- cgit v1.1