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:
Artur Wieczorek 2016-03-06 21:26:13 +01:00
parent ff788f05bb
commit 31ab9d8f3f
2 changed files with 2 additions and 2 deletions

View File

@ -2651,7 +2651,7 @@ protected:
unsigned int GetTextColIndex() const
{ 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
wxByte m_capFgColIndex; // caption text colour index

View File

@ -2944,7 +2944,7 @@ int wxPropertyCategory::GetTextExtent( const wxWindow* wnd, const wxFont& 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);
}