From: mfranz Date: Mon, 15 Oct 2007 19:12:03 +0000 (+0000) Subject: (depreciated) cmdarg() should return _node, not parent X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fa44895b5ff10abaa3e4bfaad351e916e60fe5ba;p=flightgear.git (depreciated) cmdarg() should return _node, not parent --- diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index 6fbb4db55..62deef8b0 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -1031,22 +1031,22 @@ void FGNasalListener::valueChanged(SGPropertyNode* node) _first_call = false; } -void FGNasalListener::childAdded(SGPropertyNode* parent, SGPropertyNode* child) +void FGNasalListener::childAdded(SGPropertyNode*, SGPropertyNode* child) { naRef arg[3]; arg[0] = _nas->propNodeGhost(_node); arg[1] = _nas->propNodeGhost(child); arg[2] = naNum(1); - call(parent, 3, arg); + call(_node, 3, arg); } -void FGNasalListener::childRemoved(SGPropertyNode* parent, SGPropertyNode* child) +void FGNasalListener::childRemoved(SGPropertyNode*, SGPropertyNode* child) { naRef arg[3]; arg[0] = _nas->propNodeGhost(_node); arg[1] = _nas->propNodeGhost(child); arg[2] = naNum(0); - call(parent, 3, arg); + call(_node, 3, arg); } bool FGNasalListener::changed(SGPropertyNode* node)