From d51b90a880260f5f7942057f5f46367007944e4c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 16 Mar 2014 10:26:03 +0100 Subject: thread/Thread: make the destructor non-virtual The class does not have any virtual methods, and thus the (debug-only) destructor does not need to be virtual. --- src/thread/Thread.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/thread/Thread.hxx') diff --git a/src/thread/Thread.hxx b/src/thread/Thread.hxx index 1b1bca0e8..976ff5625 100644 --- a/src/thread/Thread.hxx +++ b/src/thread/Thread.hxx @@ -68,7 +68,7 @@ public: Thread(const Thread &) = delete; #ifndef NDEBUG - virtual ~Thread() { + ~Thread() { /* all Thread objects must be destructed manually by calling Join(), to clean up */ assert(!IsDefined()); -- cgit v1.2.3