fix: some cppcheck errors (#4942)
This commit is contained in:
@@ -93,8 +93,8 @@ AFHDS2ASettings::AFHDS2ASettings(Window* parent, const FlexGridLayout& g,
|
||||
md->flysky.rfPower = newValue;
|
||||
resetPulsesAFHDS2();
|
||||
});
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
hideAFHDS2Options();
|
||||
}
|
||||
|
||||
@@ -1340,7 +1340,7 @@ void luaInit()
|
||||
#if defined(USE_BIN_ALLOCATOR)
|
||||
L = lua_newstate(bin_l_alloc, nullptr); //we use our own allocator!
|
||||
#elif defined(LUA_ALLOCATOR_TRACER)
|
||||
memclear(&lsScriptsTrace, sizeof(lsScriptsTrace);
|
||||
memclear(&lsScriptsTrace, sizeof(lsScriptsTrace));
|
||||
lsScriptsTrace.script = "lua_newstate(scripts)";
|
||||
L = lua_newstate(tracer_alloc, &lsScriptsTrace); //we use tracer allocator
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user