From: curt Date: Sun, 18 Mar 2001 20:52:27 +0000 (+0000) Subject: Here are four small changes to simgear/misc/props.hxx for Red Hat 6.2. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6cbf4306e7695dcd62eaa5797454186587ee5a4d;p=simgear.git Here are four small changes to simgear/misc/props.hxx for Red Hat 6.2. I've also compiled with Mandrake 7.2 and MSVC with no problems. --- diff --git a/simgear/misc/props.hxx b/simgear/misc/props.hxx index d49f181d..d6809970 100644 --- a/simgear/misc/props.hxx +++ b/simgear/misc/props.hxx @@ -161,7 +161,7 @@ public: virtual ~SGRawValueFunctions () {} virtual T getValue () const { if (_getter) return (*_getter)(); - else return DefaultValue; + else return SGRawValue::DefaultValue; } virtual bool setValue (T value) { if (_setter) { (*_setter)(value); return true; } @@ -193,7 +193,7 @@ public: virtual ~SGRawValueFunctionsIndexed () {} virtual T getValue () const { if (_getter) return (*_getter)(_index); - else return DefaultValue; + else return SGRawValue::DefaultValue; } virtual bool setValue (T value) { if (_setter) { (*_setter)(_index, value); return true; } @@ -226,7 +226,7 @@ public: virtual ~SGRawValueMethods () {} virtual T getValue () const { if (_getter) { return (_obj.*_getter)(); } - else { return DefaultValue; } + else { return SGRawValue::DefaultValue; } } virtual bool setValue (T value) { if (_setter) { (_obj.*_setter)(value); return true; } @@ -260,7 +260,7 @@ public: virtual ~SGRawValueMethodsIndexed () {} virtual T getValue () const { if (_getter) { return (_obj.*_getter)(_index); } - else { return DefaultValue; } + else { return SGRawValue::DefaultValue; } } virtual bool setValue (T value) { if (_setter) { (_obj.*_setter)(_index, value); return true; }