X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b05875c9771a1f3ec4e07bba56f74e85433ed4b8..c7ea5a0c7edbdb777640e2613bfaac5f649b3340:/src/generic/timectrlg.cpp diff --git a/src/generic/timectrlg.cpp b/src/generic/timectrlg.cpp index 6a5d13c6cf..71867c2f35 100644 --- a/src/generic/timectrlg.cpp +++ b/src/generic/timectrlg.cpp @@ -3,7 +3,6 @@ // Purpose: Generic implementation of wxTimePickerCtrl. // Author: Paul Breen, Vadim Zeitlin // Created: 2011-09-22 -// RCS-ID: $Id: wxhead.cpp,v 1.11 2010-04-22 12:44:51 zeitlin Exp $ // Copyright: (c) 2011 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -270,7 +269,7 @@ private: void OnTextClick(wxMouseEvent& event) { - Field field wxDUMMY_INITIALIZE(Field_Max); + Field field = Field_Max; // Initialize just to suppress warnings. long pos; switch ( m_text->HitTest(event.GetPosition(), &pos) ) { @@ -457,8 +456,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 +479,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