Make some initializers be declarations.

This shortens an earlier over-long line of declarations and makes
visible that these are declare-and-initialize.

Change-Id: I39fa9613196c34f7e2b2da04da729324d7f83a55
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
This commit is contained in:
Edward Welbourne 2016-01-18 12:58:31 +01:00
parent 57e024cc81
commit 9c0de96454

View File

@ -889,17 +889,17 @@ QDateTimeParser::StateNode QDateTimeParser::parse(QString &input, int &cursorPos
QDTPDEBUG << "parse" << input; QDTPDEBUG << "parse" << input;
{ {
int year, month, day, hour12, hour, minute, second, msec, ampm, dayofweek, year2digits; int year, month, day;
currentValue.date().getDate(&year, &month, &day); currentValue.date().getDate(&year, &month, &day);
year2digits = year % 100; int year2digits = year % 100;
hour = currentValue.time().hour(); int hour = currentValue.time().hour();
hour12 = -1; int hour12 = -1;
minute = currentValue.time().minute(); int minute = currentValue.time().minute();
second = currentValue.time().second(); int second = currentValue.time().second();
msec = currentValue.time().msec(); int msec = currentValue.time().msec();
dayofweek = currentValue.date().dayOfWeek(); int dayofweek = currentValue.date().dayOfWeek();
ampm = -1; int ampm = -1;
Sections isSet = NoSection; Sections isSet = NoSection;
int num; int num;
State tmpstate; State tmpstate;