From d4c48fdc674ed429b380473444a274f1ab22de7f Mon Sep 17 00:00:00 2001 From: Michal Jarzabek Date: Sun, 11 Sep 2016 20:19:57 +0100 Subject: [PATCH] common/Timer.h: delete copy constr and assign op Signed-off-by: Michal Jarzabek --- src/common/Timer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/Timer.h b/src/common/Timer.h index 1c14c574ba3..6ac916d9e2e 100644 --- a/src/common/Timer.h +++ b/src/common/Timer.h @@ -27,10 +27,6 @@ class SafeTimerThread; class SafeTimer { - // This class isn't supposed to be copied - SafeTimer(const SafeTimer &rhs); - SafeTimer& operator=(const SafeTimer &rhs); - CephContext *cct; Mutex& lock; Cond cond; @@ -49,6 +45,10 @@ class SafeTimer void dump(const char *caller = 0) const; public: + // This class isn't supposed to be copied + SafeTimer(const SafeTimer&) = delete; + SafeTimer& operator=(const SafeTimer&) = delete; + /* Safe callbacks determines whether callbacks are called with the lock * held. * -- 2.47.3