]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/spinctlg.h
Removed unnecessary code from utilsunx.cpp
[wxWidgets.git] / include / wx / generic / spinctlg.h
index 02d26def7d2e8137f2b1cd895f013f4289a64a99..f9f01943ce2df609e756b5a817710f478f9e38a2 100644 (file)
@@ -46,10 +46,11 @@ public:
     {
         SetRange(min, max);
 
-        bool val = wxTextCtrl::Create(parent, id, value, pos, size, style,
-                                  wxDefaultValidator, name);
+        bool ok = wxTextCtrl::Create(parent, id, value, pos, size, style,
+                                     wxDefaultValidator, name);
         SetValue(initial);
-        return value;
+
+        return ok;
     }
 
     // accessors