[xswiftbus] Protected destructor to avoid GCC/Clang warning

This commit is contained in:
Klaus Basan
2019-12-30 15:27:36 +01:00
committed by Mat Sutcliffe
parent 081e663997
commit 60ba3ca67f
2 changed files with 5 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ namespace XSwiftBus
/*! /*!
* Main plugin class * Main plugin class
*/ */
class CPlugin : public CSettingsProvider class CPlugin final : public CSettingsProvider
{ {
public: public:
//! Constructor //! Constructor

View File

@@ -45,6 +45,10 @@ namespace XSwiftBus
//! Get settings from xswiftbus.conf (needed during plugin initialization) //! Get settings from xswiftbus.conf (needed during plugin initialization)
virtual const CConfig &getConfig() const = 0; virtual const CConfig &getConfig() const = 0;
protected:
//! Destructor
~CSettingsProvider() = default;
private: private:
mutable std::mutex m_settingsMutex; mutable std::mutex m_settingsMutex;
CSettings m_pluginSettings; //!< owner of the settings CSettings m_pluginSettings; //!< owner of the settings