From: James Turner Date: Mon, 21 Oct 2013 23:42:31 +0000 (+0100) Subject: Fix GPS activation on Windows. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ea49a1a07b788c6819acf771988557f16cc639ed;p=simgear.git 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. --- diff --git a/simgear/props/props.hxx b/simgear/props/props.hxx index c78d2102..8ec61000 100644 --- a/simgear/props/props.hxx +++ b/simgear/props/props.hxx @@ -2056,6 +2056,13 @@ public: { _property->addChangeListener(this,initial); } + + SGPropertyChangeCallback(const SGPropertyChangeCallback& other) : + _obj(other._obj), _callback(other._callback), _property(other._property) + { + _property->addChangeListener(this,false); + } + virtual ~SGPropertyChangeCallback() { _property->removeChangeListener(this);