From ac02d331e4fb52f55599c8e528fdbfbc17c6c85d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 23 Sep 2015 00:25:15 +0200 Subject: [PATCH] Initialize wxHtmlSelectionState::m_bgMode in ctor Don't leave the variable uninitialized to avoid warnings from static code analyzer and to ensure that it is never used before being initialized (while this does seem to be the case already, it's not exactly obvious). --- include/wx/html/htmlcell.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/html/htmlcell.h b/include/wx/html/htmlcell.h index 0499f24f62..4bc9299934 100644 --- a/include/wx/html/htmlcell.h +++ b/include/wx/html/htmlcell.h @@ -81,7 +81,7 @@ enum wxHtmlSelectionState class WXDLLIMPEXP_HTML wxHtmlRenderingState { public: - wxHtmlRenderingState() : m_selState(wxHTML_SEL_OUT) {} + wxHtmlRenderingState() : m_selState(wxHTML_SEL_OUT) { m_bgMode = wxSOLID; } void SetSelectionState(wxHtmlSelectionState s) { m_selState = s; } wxHtmlSelectionState GetSelectionState() const { return m_selState; }