aboutsummaryrefslogtreecommitdiff
path: root/libbutl/process.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'libbutl/process.ixx')
-rw-r--r--libbutl/process.ixx8
1 files changed, 6 insertions, 2 deletions
diff --git a/libbutl/process.ixx b/libbutl/process.ixx
index 07c8bac..eba6be5 100644
--- a/libbutl/process.ixx
+++ b/libbutl/process.ixx
@@ -12,12 +12,16 @@ namespace butl
*args0_ = initial;
}
+ // Note that moving the argument into recall and leaving effective empty
+ // complies with the constructor semantics and also makes sure that the
+ // move/copy constructors and assignment operators work correctly.
+ //
inline process_path::
process_path (path e)
- : effect (std::move (e)),
+ : recall (std::move (e)),
args0_ (nullptr)
{
- initial = effect.string ().c_str ();
+ initial = recall.string ().c_str ();
}
inline process_path::