1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-17 04:46:35 +00:00

Add remaining default initialisations flagged by Coverity

This commit is contained in:
Evil Eye 2025-08-14 13:33:20 +02:00
parent 30bd014bd7
commit cae36d6eec
3 changed files with 4 additions and 5 deletions

View file

@ -54,7 +54,7 @@ namespace MWGui
MyGUI::ScrollView* mScrollView;
int mItemCount = 0;
int mRows;
int mRows = 1;
int mControllerFocus = 0;
bool mControllerActiveWindow;
void updateControllerFocus(int prevFocus, int newFocus);

View file

@ -25,16 +25,15 @@ namespace MWGui
std::shared_ptr<JournalViewModel> model, bool questList, ToUTF8::FromType encoding);
/// destroy this instance of the JournalWindow implementation
virtual ~JournalWindow() {}
virtual ~JournalWindow() = default;
/// show/hide the journal window
void setVisible(bool newValue) override = 0;
std::string_view getWindowIdForLua() const override { return "Journal"; }
size_t mIndexRowCount;
std::vector<MyGUI::Button*> mButtons;
size_t mIndexRowCount = 1;
size_t mSelectedQuest = 0;
size_t mSelectedIndex = 0;
void moveSelectedIndex(int offset);

View file

@ -511,7 +511,7 @@ namespace MWGui
std::vector<GuiMode> mGuiModes;
// The active window for controller mode for each GUI mode.
std::map<GuiMode, int> mActiveControllerWindows;
bool mControllerTooltip;
bool mControllerTooltip = false;
void reapplyActiveControllerWindow();