From 9400cb36b7b7764e742f94fbe7f4fd8082fa1ae3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 21 Aug 2017 12:00:41 +0200 Subject: [PATCH] Disallow accidental copy construction --- src/libutil/logging.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libutil/logging.hh b/src/libutil/logging.hh index 1e0c73567..08a116175 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); }