git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25864
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual bool MSWOnDraw(WXDRAWITEMSTRUCT *WXUNUSED(item)) { return FALSE; };
virtual bool MSWOnMeasure(WXMEASUREITEMSTRUCT *WXUNUSED(item)) { return FALSE; };
virtual bool MSWOnDraw(WXDRAWITEMSTRUCT *WXUNUSED(item)) { return FALSE; };
virtual bool MSWOnMeasure(WXMEASUREITEMSTRUCT *WXUNUSED(item)) { return FALSE; };
- wxArrayLong GetSubcontrols() { return m_subControls; }
+ const wxArrayLong& GetSubcontrols() const { return m_subControls; }
void OnEraseBackground(wxEraseEvent& event);
void OnEraseBackground(wxEraseEvent& event);
wxControl *control = wxDynamicCast(m_window, wxControl);
if ( control )
{
wxControl *control = wxDynamicCast(m_window, wxControl);
if ( control )
{
- const wxArrayLong subcontrols = control->GetSubcontrols();
+ const wxArrayLong& subcontrols = control->GetSubcontrols();
size_t count = subcontrols.GetCount();
for ( size_t n = 0; n < count; n++ )
{
size_t count = subcontrols.GetCount();
for ( size_t n = 0; n < count; n++ )
{