1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-24 18:26:37 +00:00

Fix clang warnings

This commit is contained in:
Andrew Lanzone 2025-07-31 22:27:31 -07:00
parent f453ce27a0
commit d49a6a119b

View file

@ -49,7 +49,8 @@ namespace MWGui
Button mButton;
std::string mName;
InputType mInputType;
union {
union
{
SDL_GameControllerButton mButton;
SDL_GameControllerAxis mAxis;
} mId;
@ -63,7 +64,12 @@ namespace MWGui
MyGUI::TextBox* mText;
Gui::HBox* mHBox;
ButtonWidgets() : mImage(nullptr), mText(nullptr), mHBox(nullptr) {}
ButtonWidgets()
: mImage(nullptr)
, mText(nullptr)
, mHBox(nullptr)
{
}
};
std::array<ButtonWidgets, Button::Button_Max> mButtons;