Otherwise it doesn't work as a listener!
{
}
-void MultiChangeListener::valueChanged()
+void MultiChangeListener::valueChanged(SGPropertyNode* node)
{
valueChangedImplementation();
}
namespace simgear
{
// Performs an action when one of several nodes changes
-class MultiChangeListener : private SGPropertyChangeListener
+class MultiChangeListener : public SGPropertyChangeListener
{
public:
MultiChangeListener();
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();
};