[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
*/
class CPlugin : public CSettingsProvider
class CPlugin final : public CSettingsProvider
{
public:
//! Constructor

View File

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