mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +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
|
||||
*/
|
||||
class CPlugin : public CSettingsProvider
|
||||
class CPlugin final : public CSettingsProvider
|
||||
{
|
||||
public:
|
||||
//! Constructor
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user