1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00
This commit is contained in:
Michał W. Urbańczyk
2012-09-06 10:26:18 +00:00
parent 0ca9f64573
commit ea4841045f
2 changed files with 9 additions and 0 deletions

View File

@@ -105,6 +105,14 @@ SettingsListener::SettingsListener(SettingsStorage &_parent, const std::vector<s
parent.listeners.insert(this);
}
SettingsListener::SettingsListener(const SettingsListener &sl):
parent(sl.parent),
path(sl.path),
callback(sl.callback)
{
parent.listeners.insert(this);
}
SettingsListener::~SettingsListener()
{
parent.listeners.erase(this);

View File

@@ -71,6 +71,7 @@ class SettingsListener
void nodeInvalidated(const std::vector<std::string> changedPath);
public:
SettingsListener(const SettingsListener &sl);
~SettingsListener();
// assign callback function