Skip to content

Commit 6125dfc

Browse files
committed
xrUICore/Buttons/UICheckButton.h: default initialize m_opt_backup_value directly in the class
1 parent 6c904ca commit 6125dfc

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/xrUICore/Buttons/UICheckButton.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ CUICheckButton::CUICheckButton()
1212
TextItemControl()->SetTextAlignment(CGameFont::alLeft);
1313
SetButtonAsSwitch(true);
1414
m_pDependControl = NULL;
15-
m_opt_backup_value = false;
1615
}
1716

1817
void CUICheckButton::SetDependControl(CUIWindow* pWnd) { m_pDependControl = pWnd; }

src/xrUICore/Buttons/UICheckButton.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class XRUICORE_API CUICheckButton final : public CUI3tButton, public CUIOptionsI
3434
pcstr GetDebugType() override { return "CUICheckButton"; }
3535

3636
private:
37-
bool m_opt_backup_value;
37+
bool m_opt_backup_value{};
3838
void InitTexture2(LPCSTR texture_name);
3939
CUIWindow* m_pDependControl;
4040
};

0 commit comments

Comments
 (0)