Rename m_UseXXX variables to m_useXXX for consistency

And also to follow the usual naming convention.
This commit is contained in:
Vadim Zeitlin
2019-04-21 02:03:05 +02:00
parent 419a053b7d
commit eebadf3483

View File

@@ -2347,8 +2347,8 @@ private:
bool m_hasListCtrlAppearance; bool m_hasListCtrlAppearance;
wxColour m_currentBgColour; wxColour m_currentBgColour;
wxColour m_currentTextColour; wxColour m_currentTextColour;
bool m_UseDefaultCurrentBgColour; bool m_useDefaultCurrentBgColour;
bool m_UseDefaultCurrentTextColour; bool m_useDefaultCurrentTextColour;
}; };
wxSTCListBoxVisualData::wxSTCListBoxVisualData(int d):m_desiredVisibleRows(d), wxSTCListBoxVisualData::wxSTCListBoxVisualData(int d):m_desiredVisibleRows(d),
@@ -2357,8 +2357,8 @@ wxSTCListBoxVisualData::wxSTCListBoxVisualData(int d):m_desiredVisibleRows(d),
m_useDefaultHighlightBgColour(true), m_useDefaultHighlightBgColour(true),
m_useDefaultHighlightTextColour(true), m_useDefaultHighlightTextColour(true),
m_hasListCtrlAppearance(false), m_hasListCtrlAppearance(false),
m_UseDefaultCurrentBgColour(true), m_useDefaultCurrentBgColour(true),
m_UseDefaultCurrentTextColour(true) m_useDefaultCurrentTextColour(true)
{ {
ComputeColours(); ComputeColours();
} }
@@ -2452,7 +2452,7 @@ void wxSTCListBoxVisualData::ComputeColours()
if ( m_useDefaultHighlightBgColour ) if ( m_useDefaultHighlightBgColour )
m_highlightBgColour = wxNullColour; m_highlightBgColour = wxNullColour;
if ( m_UseDefaultCurrentBgColour ) if ( m_useDefaultCurrentBgColour )
m_currentBgColour = wxNullColour; m_currentBgColour = wxNullColour;
#ifdef __WXMSW__ #ifdef __WXMSW__
@@ -2465,7 +2465,7 @@ void wxSTCListBoxVisualData::ComputeColours()
wxSYS_COLOUR_LISTBOXHIGHLIGHTTEXT); wxSYS_COLOUR_LISTBOXHIGHLIGHTTEXT);
#endif #endif
if ( m_UseDefaultCurrentTextColour ) if ( m_useDefaultCurrentTextColour )
m_currentTextColour = wxSystemSettings::GetColour( m_currentTextColour = wxSystemSettings::GetColour(
wxSYS_COLOUR_LISTBOXTEXT); wxSYS_COLOUR_LISTBOXTEXT);
} }
@@ -2536,8 +2536,8 @@ void wxSTCListBoxVisualData::UseListCtrlStyle(bool useListCtrlStyle,
const wxColour& curText) const wxColour& curText)
{ {
m_hasListCtrlAppearance = useListCtrlStyle; m_hasListCtrlAppearance = useListCtrlStyle;
SetColourHelper(m_UseDefaultCurrentBgColour, m_currentBgColour, curBg); SetColourHelper(m_useDefaultCurrentBgColour, m_currentBgColour, curBg);
SetColourHelper(m_UseDefaultCurrentTextColour, m_currentTextColour, SetColourHelper(m_useDefaultCurrentTextColour, m_currentTextColour,
curText); curText);
ComputeColours(); ComputeColours();
} }