]> git.saurik.com Git - wxWidgets.git/commitdiff
fix warning about signed/unsigned comparison; use STL-compatible methods
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 5 May 2007 22:15:56 +0000 (22:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 5 May 2007 22:15:56 +0000 (22:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/framemanager.cpp

index 30197f6d84bbe517ddf87317b4af332a8672e7b1..fb40bea51d32a989046785758f630fc870346c67 100644 (file)
@@ -511,11 +511,10 @@ wxAuiManager::wxAuiManager(wxWindow* managed_wnd, unsigned int flags)
 
 wxAuiManager::~wxAuiManager()
 {
 
 wxAuiManager::~wxAuiManager()
 {
-    int i;
-    for (i = 0; i < m_panes.Count(); i++ )
+    for ( size_t i = 0; i < m_panes.size(); i++ )
     {
     {
-        wxAuiPaneInfo& pinfo = m_panes.Item(i);
-        if (pinfo.window && pinfo.window->GetParent() == 0)
+        wxAuiPaneInfo& pinfo = m_panes[i];
+        if (pinfo.window && !pinfo.window->GetParent())
             delete pinfo.window;
     }
 
             delete pinfo.window;
     }