mirror of https://github.com/ArduPilot/ardupilot
AP_Scripting: remove redundant memsets
Matches current generator behavior.
This commit is contained in:
parent
837b17e82e
commit
e66d2a1495
|
@ -21,7 +21,6 @@ int lua_new_Parameter(lua_State *L) {
|
||||||
|
|
||||||
// This chunk is the same as the auto generated constructor
|
// This chunk is the same as the auto generated constructor
|
||||||
void *ud = lua_newuserdata(L, sizeof(Parameter));
|
void *ud = lua_newuserdata(L, sizeof(Parameter));
|
||||||
memset(ud, 0, sizeof(Parameter));
|
|
||||||
new (ud) Parameter();
|
new (ud) Parameter();
|
||||||
luaL_getmetatable(L, "Parameter");
|
luaL_getmetatable(L, "Parameter");
|
||||||
lua_setmetatable(L, -2);
|
lua_setmetatable(L, -2);
|
||||||
|
|
Loading…
Reference in New Issue