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:
parent
995d5aa24a
commit
54d6106853
@ -1113,6 +1113,12 @@ inline void wxSizerItem::SetSpacer(int width, int height)
|
|||||||
|
|
||||||
#endif // WXWIN_COMPATIBILITY_2_8
|
#endif // WXWIN_COMPATIBILITY_2_8
|
||||||
|
|
||||||
|
inline wxSizerItem*
|
||||||
|
wxSizer::Insert(size_t index, wxSizerItem *item)
|
||||||
|
{
|
||||||
|
return DoInsert(index, item);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
inline wxSizerItem*
|
inline wxSizerItem*
|
||||||
wxSizer::Add( wxSizerItem *item )
|
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) );
|
return Insert( index, new wxSizerItem(width, height, flags) );
|
||||||
}
|
}
|
||||||
|
|
||||||
inline wxSizerItem*
|
|
||||||
wxSizer::Insert(size_t index, wxSizerItem *item)
|
|
||||||
{
|
|
||||||
return DoInsert(index, item);
|
|
||||||
}
|
|
||||||
|
|
||||||
inline wxSizerItem*
|
inline wxSizerItem*
|
||||||
wxSizer::InsertSpacer(size_t index, int size)
|
wxSizer::InsertSpacer(size_t index, int size)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user