From c8802a33677dd84b5736c333c6821d6eba992b97 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Oct 2019 09:28:15 +0200 Subject: Add process_path::clear_recall() --- libbutl/process.ixx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libbutl/process.ixx') diff --git a/libbutl/process.ixx b/libbutl/process.ixx index c7459c8..17c5daa 100644 --- a/libbutl/process.ixx +++ b/libbutl/process.ixx @@ -79,6 +79,16 @@ namespace butl return effect.empty () ? recall_string () : effect.string ().c_str (); } + inline void process_path:: + clear_recall () + { + if (!effect.empty ()) + { + recall = std::move (effect); + effect.clear (); + } + } + // process_exit // #ifdef _WIN32 -- cgit v1.1