X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ada88e3efe9048f4d660eb657b0e44bd463b0fba..7848088476db284a94f19eeb24411b45d676ac46:/src/msw/tooltip.cpp?ds=sidebyside 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++ ) {