Rearrange functions order so that they are effectively inlined.

Define wxSizer::Insert(size_t, wxSizerItem *) before it is used so that it
could really be inlined.

This also fixes an IRIX mipsPro compiler warning.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2010-02-28 11:09:02 +00:00
parent 995d5aa24a
commit 54d6106853

View File

@ -1113,6 +1113,12 @@ inline void wxSizerItem::SetSpacer(int width, int height)
#endif // WXWIN_COMPATIBILITY_2_8
inline wxSizerItem*
wxSizer::Insert(size_t index, wxSizerItem *item)
{
return DoInsert(index, item);
}
inline wxSizerItem*
wxSizer::Add( wxSizerItem *item )
@ -1274,12 +1280,6 @@ wxSizer::Insert( size_t index, int width, int height, const wxSizerFlags& flags
return Insert( index, new wxSizerItem(width, height, flags) );
}
inline wxSizerItem*
wxSizer::Insert(size_t index, wxSizerItem *item)
{
return DoInsert(index, item);
}
inline wxSizerItem*
wxSizer::InsertSpacer(size_t index, int size)
{