Fix GPS activation on Windows.

Bug 1190, fix route-manager -> GPS activation on Windows
(and probably a couple of unrelated issues).
SGPropertyChangeCallback was missing a suitable copy-constructor,
leading to incorrect behaviour on compilers where the operation
is not elided. Such as MSVC.
This commit is contained in:
James Turner
2013-10-22 00:42:31 +01:00
parent 784223c67f
commit ea49a1a07b
+7
View File
@@ -2056,6 +2056,13 @@ public:
{
_property->addChangeListener(this,initial);
}
SGPropertyChangeCallback(const SGPropertyChangeCallback<T>& other) :
_obj(other._obj), _callback(other._callback), _property(other._property)
{
_property->addChangeListener(this,false);
}
virtual ~SGPropertyChangeCallback()
{
_property->removeChangeListener(this);