From 6ada7357743b8fd9435f4633ea7d0a9165ab3afd Mon Sep 17 00:00:00 2001 From: Lars Toenning Date: Fri, 29 Apr 2022 22:33:35 +0200 Subject: [PATCH] Remove unused Base template parameter --- src/blackmisc/valueobject.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/blackmisc/valueobject.h b/src/blackmisc/valueobject.h index 8cab6df82..e55cc9b1e 100644 --- a/src/blackmisc/valueobject.h +++ b/src/blackmisc/valueobject.h @@ -106,11 +106,9 @@ namespace BlackMisc * Mix of the most commonly used mixin classes. * \see BlackMisc::Mixin * \tparam Derived The class which is inheriting from this one (CRTP). - * \tparam Base The class which this one shall inherit from (default is CEmpty, - * but this can be changed to create a deeper inheritance hierarchy). */ - template class CValueObject : - public Base, + template class CValueObject : + public CEmpty, public Mixin::MetaType, public Mixin::HashByMetaClass, public Mixin::DBusByMetaClass, @@ -125,7 +123,7 @@ namespace BlackMisc { public: //! Base class - using base_type = Base; + using base_type = CEmpty; //! \copydoc BlackMisc::Mixin::String::toQString using Mixin::String::toQString; @@ -172,7 +170,7 @@ namespace BlackMisc protected: //! Inheriting constructors. - using Base::Base; + using CEmpty::CEmpty; //! Default constructor. CValueObject() = default;