From 45f77fd60f71322b288a4497dea5b583b2692613 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 26 Sep 2013 12:42:21 +0300 Subject: Change destructors to virtual in all basic classes. Also add some missing final to classes. --- src/utils/mutex.h | 4 ++-- src/utils/perfomance.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/utils') diff --git a/src/utils/mutex.h b/src/utils/mutex.h index 37c889e02..9bb3cfcdd 100644 --- a/src/utils/mutex.h +++ b/src/utils/mutex.h @@ -31,7 +31,7 @@ * A mutex provides mutual exclusion of access to certain data that is * accessed by multiple threads. */ -class Mutex +class Mutex final { public: Mutex(); @@ -54,7 +54,7 @@ class Mutex /** * A convenience class for locking a mutex. */ -class MutexLocker +class MutexLocker final { public: explicit MutexLocker(Mutex *mutex); diff --git a/src/utils/perfomance.h b/src/utils/perfomance.h index c3a79c722..f668988f3 100644 --- a/src/utils/perfomance.h +++ b/src/utils/perfomance.h @@ -47,7 +47,7 @@ namespace Perfomance void blockEnd(const std::string &name); - class Func + class Func final { public: explicit Func(const std::string &str) : -- cgit v1.2.3-70-g09d2