From 9400cb36b7b7764e742f94fbe7f4fd8082fa1ae3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 21 Aug 2017 12:00:41 +0200 Subject: Disallow accidental copy construction --- src/libutil/logging.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/libutil/logging.hh b/src/libutil/logging.hh index 1e0c735676b6..08a11617591e 100644 --- a/src/libutil/logging.hh +++ b/src/libutil/logging.hh @@ -81,6 +81,8 @@ struct Activity Activity(Logger & logger, ActivityType type, const std::string & s = ""); + Activity(const Activity & act) = delete; + ~Activity() { logger.stopActivity(id); } -- cgit 1.4.1