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:
parent
57e024cc81
commit
9c0de96454
@ -889,17 +889,17 @@ QDateTimeParser::StateNode QDateTimeParser::parse(QString &input, int &cursorPos
|
||||
|
||||
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);
|
||||
year2digits = year % 100;
|
||||
hour = currentValue.time().hour();
|
||||
hour12 = -1;
|
||||
minute = currentValue.time().minute();
|
||||
second = currentValue.time().second();
|
||||
msec = currentValue.time().msec();
|
||||
dayofweek = currentValue.date().dayOfWeek();
|
||||
int year2digits = year % 100;
|
||||
int hour = currentValue.time().hour();
|
||||
int hour12 = -1;
|
||||
int minute = currentValue.time().minute();
|
||||
int second = currentValue.time().second();
|
||||
int msec = currentValue.time().msec();
|
||||
int dayofweek = currentValue.date().dayOfWeek();
|
||||
|
||||
ampm = -1;
|
||||
int ampm = -1;
|
||||
Sections isSet = NoSection;
|
||||
int num;
|
||||
State tmpstate;
|
||||
|
Loading…
x
Reference in New Issue
Block a user