]> git.saurik.com Git - wxWidgets.git/commitdiff
no changes, just removed some commented out code
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Apr 2006 23:43:49 +0000 (23:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Apr 2006 23:43:49 +0000 (23:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/widgets/widgets.cpp

index 2378c6b78e91d4aa97aac79806689fe429c6b761..fdf77d4abb39839d2ad2c1c0b69030d87292fdd4 100644 (file)
@@ -441,11 +441,6 @@ void WidgetsFrame::InitBook()
                         false, // don't select
                         n // image id
                        );
-
-/*
-        wxColour colour = m_book->MSWGetBgColourForChild(pages[n]);
-        pages[n]->SetBackgroundColour(colour);
-*/
     }
 }
 
@@ -640,12 +635,11 @@ WidgetsPageInfo::WidgetsPageInfo(Constructor ctor, const wxChar *label)
 
     m_next = NULL;
 
-    // dummy sorting: add and immediately sort on list according to label
-
+    // dummy sorting: add and immediately sort in the list according to label
     if(WidgetsPage::ms_widgetPages)
     {
         WidgetsPageInfo *node_prev = WidgetsPage::ms_widgetPages;
-        if(wxStrcmp(label,node_prev->GetLabel().c_str())<0)
+        if ( wxStrcmp(label, node_prev->GetLabel().c_str()) < 0 )
         {
             // add as first
             m_next = node_prev;
@@ -657,10 +651,10 @@ WidgetsPageInfo::WidgetsPageInfo(Constructor ctor, const wxChar *label)
             do
             {
                 node_next = node_prev->GetNext();
-                if(node_next)
+                if ( node_next )
                 {
                     // add if between two
-                    if(wxStrcmp(label,node_next->GetLabel().c_str())<0)
+                    if ( wxStrcmp(label, node_next->GetLabel().c_str()) < 0 )
                     {
                         node_prev->SetNext(this);
                         m_next = node_next;
@@ -675,17 +669,15 @@ WidgetsPageInfo::WidgetsPageInfo(Constructor ctor, const wxChar *label)
                     m_next = node_next;
                 }
                 node_prev = node_next;
-            }while(node_next);
+            }
+            while ( node_next );
         }
     }
     else
     {
         // add when first
-
         WidgetsPage::ms_widgetPages = this;
-
     }
-
 }
 
 // ----------------------------------------------------------------------------