]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/radiobut.cpp
Commented out call that breaks metal style setting before Create
[wxWidgets.git] / src / univ / radiobut.cpp
index f0ddaa727a042db9e1f90ae5f6d85cfe4d3684ea..d125cb30f573da89975fec9a281c2495ba10b31c 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
-#ifdef __GNUG__
-    #pragma implementation "univradiobut.h"
-#endif
-
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
@@ -60,12 +56,12 @@ bool wxRadioButton::Create(wxWindow *parent,
                         const wxString &name)
 {
     if ( !wxCheckBox::Create(parent, id, label, pos, size, style,
-                             wxDefaultValidator, name) )
+                             validator, name) )
     {
-        return FALSE;
+        return false;
     }
 
-    return TRUE;
+    return true;
 }
 
 // ----------------------------------------------------------------------------
@@ -78,7 +74,7 @@ void wxRadioButton::OnCheck()
     // find the radio button which is the first in the group, i.e. the one
     // with wxRB_GROUP style
     const wxWindowList& siblings = GetParent()->GetChildren();
-    wxWindowList::Node *nodeStart = siblings.Find(this);
+    wxWindowList::compatibility_iterator nodeStart = siblings.Find(this);
     while ( nodeStart )
     {
         // stop if we found a radio button with wxRB_GROUP style or it we
@@ -134,7 +130,7 @@ void wxRadioButton::ClearValue()
 {
     if ( IsChecked() )
     {
-        SetValue(FALSE);
+        SetValue(false);
     }
 }