X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ada88e3efe9048f4d660eb657b0e44bd463b0fba..006271980fc91ab2e10024e77b56f98d6bb5a35b:/src/msw/tooltip.cpp diff --git a/src/msw/tooltip.cpp b/src/msw/tooltip.cpp index cec5c0f8ed..0ab90686a8 100644 --- a/src/msw/tooltip.cpp +++ b/src/msw/tooltip.cpp @@ -350,7 +350,7 @@ void wxToolTip::SetWindow(wxWindow *win) 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++ ) {