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:
parent
30bd014bd7
commit
cae36d6eec
3 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue