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;
|
md->flysky.rfPower = newValue;
|
||||||
resetPulsesAFHDS2();
|
resetPulsesAFHDS2();
|
||||||
});
|
});
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
hideAFHDS2Options();
|
hideAFHDS2Options();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1340,7 +1340,7 @@ void luaInit()
|
|||||||
#if defined(USE_BIN_ALLOCATOR)
|
#if defined(USE_BIN_ALLOCATOR)
|
||||||
L = lua_newstate(bin_l_alloc, nullptr); //we use our own allocator!
|
L = lua_newstate(bin_l_alloc, nullptr); //we use our own allocator!
|
||||||
#elif defined(LUA_ALLOCATOR_TRACER)
|
#elif defined(LUA_ALLOCATOR_TRACER)
|
||||||
memclear(&lsScriptsTrace, sizeof(lsScriptsTrace);
|
memclear(&lsScriptsTrace, sizeof(lsScriptsTrace));
|
||||||
lsScriptsTrace.script = "lua_newstate(scripts)";
|
lsScriptsTrace.script = "lua_newstate(scripts)";
|
||||||
L = lua_newstate(tracer_alloc, &lsScriptsTrace); //we use tracer allocator
|
L = lua_newstate(tracer_alloc, &lsScriptsTrace); //we use tracer allocator
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user