]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/radiobut.cpp
Rebake after adding libs html and xml to samples using lib adv
[wxWidgets.git] / src / motif / radiobut.cpp
index e45879d47380af086ab3301c6acc397d12bb960e..82c359104b8dc28a90fd12ca7638b8d4203070f2 100644 (file)
@@ -1,18 +1,14 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        radiobut.cpp
+// Name:        src/motif/radiobut.cpp
 // Purpose:     wxRadioButton
 // Author:      Julian Smart
 // Modified by:
 // Created:     17/09/98
 // RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart
-// Licence:    wxWindows licence
+// 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 ) ;
@@ -151,7 +147,7 @@ void wxRadioButton::ChangeBackgroundColour()
           NULL);
 }
 
-void wxRadioButtonCallback (Widget w, XtPointer clientData,
+void wxRadioButtonCallback (Widget WXUNUSED(w), XtPointer clientData,
                             XmToggleButtonCallbackStruct * cbs)
 {
     if (!cbs->set)
@@ -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()