Make pointer to wxWindow a const argument.
State of referenced window is not going to be changed and let caller know about it.
This commit is contained in:
@@ -2651,7 +2651,7 @@ protected:
|
|||||||
unsigned int GetTextColIndex() const
|
unsigned int GetTextColIndex() const
|
||||||
{ return (unsigned int) m_capFgColIndex; }
|
{ return (unsigned int) m_capFgColIndex; }
|
||||||
|
|
||||||
void CalculateTextExtent( wxWindow* wnd, const wxFont& font );
|
void CalculateTextExtent(const wxWindow* wnd, const wxFont& font);
|
||||||
|
|
||||||
int m_textExtent; // pre-calculated length of text
|
int m_textExtent; // pre-calculated length of text
|
||||||
wxByte m_capFgColIndex; // caption text colour index
|
wxByte m_capFgColIndex; // caption text colour index
|
||||||
|
@@ -2944,7 +2944,7 @@ int wxPropertyCategory::GetTextExtent( const wxWindow* wnd, const wxFont& font )
|
|||||||
return DoGetTextExtent(wnd, m_label, font);
|
return DoGetTextExtent(wnd, m_label, font);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxPropertyCategory::CalculateTextExtent( wxWindow* wnd, const wxFont& font )
|
void wxPropertyCategory::CalculateTextExtent(const wxWindow* wnd, const wxFont& font)
|
||||||
{
|
{
|
||||||
m_textExtent = DoGetTextExtent(wnd, m_label, font);
|
m_textExtent = DoGetTextExtent(wnd, m_label, font);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user