]> git.saurik.com Git - wxWidgets.git/commitdiff
Rearrange functions order so that they are effectively inlined.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Feb 2010 11:09:02 +0000 (11:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Feb 2010 11:09:02 +0000 (11:09 +0000)
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

include/wx/sizer.h

index 89bdf6619677c9c5a2385440c3b4b8244fe39a34..6d414fd09d20308b3cc8a22ee7d0a3e1d33fb5b0 100644 (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)
 {