Fix all uninitialized variable warnings (C26495)

This commit is contained in:
Pokechu22
2021-09-03 21:43:19 -07:00
parent 525e6b2194
commit 78bfd25964
111 changed files with 638 additions and 651 deletions

View File

@ -52,7 +52,7 @@ private:
u32 AddInteger(PostProcessingConfigWindow* parent, QGridLayout* grid, u32 row);
u32 AddFloat(PostProcessingConfigWindow* parent, QGridLayout* grid, u32 row);
QCheckBox* m_checkbox;
QCheckBox* m_checkbox = nullptr;
std::vector<QSlider*> m_sliders;
std::vector<QLineEdit*> m_value_boxes;

View File

@ -207,7 +207,7 @@ public:
private:
std::function<ControlState()> m_state_evaluator;
bool m_should_paint_state_indicator;
bool m_should_paint_state_indicator = false;
};
IOWindow::IOWindow(MappingWidget* parent, ControllerEmu::EmulatedController* controller,

View File

@ -35,10 +35,10 @@
struct CodeViewBranch
{
u32 src_addr;
u32 dst_addr;
u32 src_addr = 0;
u32 dst_addr = 0;
u32 indentation = 0;
bool is_link;
bool is_link = false;
};
constexpr u32 WIDTH_PER_BRANCH_ARROW = 16;

View File

@ -21,7 +21,7 @@ protected:
private:
const TASInputWindow* m_parent;
int m_frame_turbo_started;
int m_turbo_press_frames;
int m_turbo_total_frames;
int m_frame_turbo_started = 0;
int m_turbo_press_frames = 0;
int m_turbo_total_frames = 0;
};