]> git.mxchange.org Git - flightgear.git/commit
- pass return values in set{,Bool,Int,Double}Value() and setprop()
authormfranz <mfranz>
Sat, 7 Feb 2009 23:52:12 +0000 (23:52 +0000)
committerTim Moore <timoore@redhat.com>
Mon, 9 Feb 2009 23:22:16 +0000 (00:22 +0100)
commitf3ba7a3bd4250d8ddbd7e095456f0b0360d3a7e7
treea1daad78111a3402ef424bd67b713edcaca9ee7b
parent916240693f1340115ec374fca8a8645e9c6a0d2c
- pass return values in set{,Bool,Int,Double}Value() and setprop()
- make some char* "const" to silence warnings

This removes the warning that (rarely) occurred if one wrote to a
write protected property with setprop(). While this was a useful
hint, it needlessly floods the terminal if one protected a property
intentionally. (Consider to add an SG_DEBUG warning instead.) It's
now the caller's job to check for the result if it actually cares.
src/Scripting/NasalSys.cxx
src/Scripting/nasal-props.cxx