From: Tim Moore Date: Mon, 16 Nov 2009 21:39:56 +0000 (+0100) Subject: Make MultiChangeListener derive publicly from SGPropertyChangeListener X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cd4030b7dbb93b1f58f1d9fd3ddcd9f6f2c46224;p=simgear.git Make MultiChangeListener derive publicly from SGPropertyChangeListener Otherwise it doesn't work as a listener! --- diff --git a/simgear/props/AtomicChangeListener.cxx b/simgear/props/AtomicChangeListener.cxx index c2e08ac7..e0617d7b 100644 --- a/simgear/props/AtomicChangeListener.cxx +++ b/simgear/props/AtomicChangeListener.cxx @@ -16,7 +16,7 @@ MultiChangeListener::MultiChangeListener() { } -void MultiChangeListener::valueChanged() +void MultiChangeListener::valueChanged(SGPropertyNode* node) { valueChangedImplementation(); } diff --git a/simgear/props/AtomicChangeListener.hxx b/simgear/props/AtomicChangeListener.hxx index a5ad7f6b..a287738c 100644 --- a/simgear/props/AtomicChangeListener.hxx +++ b/simgear/props/AtomicChangeListener.hxx @@ -15,7 +15,7 @@ namespace simgear { // Performs an action when one of several nodes changes -class MultiChangeListener : private SGPropertyChangeListener +class MultiChangeListener : public SGPropertyChangeListener { public: MultiChangeListener(); @@ -25,9 +25,8 @@ public: for (Pitr itr = propsBegin, end = propsEnd; itr != end; ++itr) (*itr)->addChangeListener(this); } - void valueChanged(); - using SGPropertyChangeListener::unregister_property; private: + void valueChanged(SGPropertyNode* node); virtual void valueChangedImplementation(); };