]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/radiobut.cpp
wxCheckListBox cleanup.
[wxWidgets.git] / src / motif / radiobut.cpp
index e45879d47380af086ab3301c6acc397d12bb960e..5f9674abced7daa1c5116a336d55e8d5f980e297 100644 (file)
@@ -9,10 +9,6 @@
 // Licence:    wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "radiobut.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -90,7 +86,7 @@ bool wxRadioButton::Create(wxWindow *parent, wxWindowID id,
 
     //copied from mac/radiobut.cpp (from here till "return true;")
     m_cycle = this ;
-  
+
     if (HasFlag(wxRB_GROUP))
     {
         AddInCycle( NULL ) ;
@@ -181,23 +177,20 @@ void wxRadioButtonCallback (Widget w, XtPointer clientData,
 
 wxRadioButton* wxRadioButton::AddInCycle(wxRadioButton *cycle)
 {
-    wxRadioButton* next;
-    wxRadioButton* current;
-       
     if (cycle == NULL)
     {
         m_cycle = this;
-        return this;
     }
     else
     {
-        current = cycle;
-        while ((next = current->m_cycle) != cycle) 
+        wxRadioButton* current = cycle;
+        while ( current->m_cycle != cycle )
             current = current->m_cycle;
         m_cycle = cycle;
         current->m_cycle = this;
-        return cycle;
     }
+
+    return cycle;
 }
 
 wxRadioButton* wxRadioButton::ClearSelections()