X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4e5e421c78de12a560de3e6fd2bc74304df681b1..615f9ff096c8c6553361975ab0504255c0f1f584:/src/generic/timectrlg.cpp diff --git a/src/generic/timectrlg.cpp b/src/generic/timectrlg.cpp index f6aaa2317e..b040ee9beb 100644 --- a/src/generic/timectrlg.cpp +++ b/src/generic/timectrlg.cpp @@ -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