mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Fix coverity uninitialized variables
This commit is contained in:
parent
4fbbb67e98
commit
eceed558be
7 changed files with 24 additions and 9 deletions
|
@ -8,6 +8,13 @@
|
|||
|
||||
namespace LuaUi
|
||||
{
|
||||
WidgetExtension::WidgetExtension()
|
||||
: mForcedCoord()
|
||||
, mAbsoluteCoord()
|
||||
, mRelativeCoord()
|
||||
, mAnchor()
|
||||
{}
|
||||
|
||||
void WidgetExtension::triggerEvent(std::string_view name, const sol::object& argument = sol::nil) const
|
||||
{
|
||||
auto it = mCallbacks.find(name);
|
||||
|
@ -27,11 +34,6 @@ namespace LuaUi
|
|||
|
||||
void WidgetExtension::initialize()
|
||||
{
|
||||
mAbsoluteCoord = MyGUI::IntCoord();
|
||||
mRelativeCoord = MyGUI::FloatCoord();
|
||||
mAnchor = MyGUI::FloatSize();
|
||||
mForcedCoord = MyGUI::IntCoord();
|
||||
|
||||
// \todo might be more efficient to only register these if there are Lua callbacks
|
||||
mWidget->eventKeyButtonPressed += MyGUI::newDelegate(this, &WidgetExtension::keyPress);
|
||||
mWidget->eventKeyButtonReleased += MyGUI::newDelegate(this, &WidgetExtension::keyRelease);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue