diff options
author | Shea Levy <shea@shealevy.com> | 2015-11-16 05:53:10 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2015-11-16 05:53:10 -0500 |
commit | 58d2fac91d0da7312e3ef147b6b290ea16031da8 (patch) | |
tree | ba474622269f885954478d3713ab39da098a8821 /src/libutil/util.hh | |
parent | 4390142315a0d6ed0f67712061498c68389ea3b7 (diff) |
AutoDelete: Add default constructor with deletion disabled
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r-- | src/libutil/util.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 23d01e9a6..f4026a0a8 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -199,9 +199,11 @@ class AutoDelete bool del; bool recursive; public: + AutoDelete(); AutoDelete(const Path & p, bool recursive = true); ~AutoDelete(); void cancel(); + void reset(const Path & p, bool recursive = true); operator Path() const { return path; } }; |