From 3639da9a4b22c084437ec3124092396ed7add5a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Aleksandrovi=C4=8D=20Klimov?= Date: Fri, 15 Nov 2024 10:28:41 +0100 Subject: [PATCH] Make protected SharedObject#~SharedObject() non-virtual `virtual`, which isn't for free, is only needed for a base method to redirect direct calls by pointer to an override if any. But this method is protected, so it's not called directly. --- lib/base/shared-object.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/base/shared-object.hpp b/lib/base/shared-object.hpp index 58636dccbf0..c11739342d6 100644 --- a/lib/base/shared-object.hpp +++ b/lib/base/shared-object.hpp @@ -49,7 +49,6 @@ class SharedObject return *this; } - inline virtual ~SharedObject() = default; private: