]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/timectrlg.cpp
More docs cleanup and fixes for richtextbuffer
[wxWidgets.git] / src / generic / timectrlg.cpp
index f6aaa2317eb6beef1a53ff1d72a3a02c132e642e..b040ee9beb03dd382d13fd48172aee485958f2fb 100644 (file)
@@ -457,8 +457,8 @@ private:
             // The first digit simply replaces the existing field contents,
             // but the second one should be combined with the previous one,
             // otherwise entering 2-digit numbers would be impossible.
-            int currentValue wxDUMMY_INITIALIZE(0),
-                maxValue wxDUMMY_INITIALIZE(0);
+            int currentValue = 0,
+                maxValue  = 0;
 
             switch ( m_currentField )
             {
@@ -480,6 +480,7 @@ private:
                 case Field_AMPM:
                 case Field_Max:
                     wxFAIL_MSG( "Invalid field" );
+                    return;
             }
 
             // Check if the new value is acceptable. If not, we just handle