mirror of
https://github.com/opentx/opentx.git
synced 2025-07-21 07:15:12 +03:00
Re #1480: Cosmetics
This commit is contained in:
parent
fb3e615008
commit
2f01f139cc
2 changed files with 5 additions and 7 deletions
|
@ -165,7 +165,8 @@ static LuaField foundField = {0, foundName, foundDesc};
|
|||
/**
|
||||
Return filed data for a given field name
|
||||
|
||||
Note: function is non-reentrant
|
||||
Note: function is non-reentrant,
|
||||
it uses global variable foundField for return value
|
||||
*/
|
||||
const LuaField * luaFindFieldByName(const char * name)
|
||||
{
|
||||
|
@ -188,15 +189,14 @@ const LuaField * luaFindFieldByName(const char * name)
|
|||
}
|
||||
}
|
||||
}
|
||||
// search in lua script outputs
|
||||
// TODO
|
||||
return 0; // not found
|
||||
}
|
||||
|
||||
/**
|
||||
Return filed data for a given field id
|
||||
|
||||
Note: function is non-reentrant
|
||||
Note: function is non-reentrant,
|
||||
it uses global variable foundField for return value
|
||||
*/
|
||||
const LuaField * luaFindFieldById(int id)
|
||||
{
|
||||
|
@ -215,8 +215,6 @@ const LuaField * luaFindFieldById(int id)
|
|||
return &foundField;
|
||||
}
|
||||
}
|
||||
// search in lua script outputs
|
||||
// TODO
|
||||
return 0; // not found
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue