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:
parent
ff788f05bb
commit
31ab9d8f3f
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user