mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 07:15:34 +08:00
[xswiftbus] Protected destructor to avoid GCC/Clang warning
This commit is contained in:
committed by
Mat Sutcliffe
parent
081e663997
commit
60ba3ca67f
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user