Change QDateTime::addSecs() and QDateTime::secsTo() to use qint64.
authorJon Severinsson <jon@severinsson.net>
Tue, 9 Oct 2012 13:15:53 +0000 (15:15 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 10 Oct 2012 06:45:22 +0000 (08:45 +0200)
commit85c47eed6b6bfdacfb8e6438b6ef8a1185168675
tree9aae146045a3b5dd0b09c0a4f164a81289d61456
parent78dddc280235e3b298922189bfef8aca6f42d879
Change QDateTime::addSecs() and QDateTime::secsTo() to use qint64.

addMSecs() / msecsTo() have always used qint64, and when QDate was changed
to use a 64-bit julian day, QDateTime::addDays() and QDateTime::daysTo() was
changed to use qint64 in order to support the full extended range, but
addSecs() and secsTo() seems to have been forgotten.

Change-Id: I3acc35ee2bcc9f353650eb42f97d428f706b2db6
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qdatetime.cpp
src/corelib/tools/qdatetime.h
tests/auto/corelib/tools/qdatetime/tst_qdatetime.cpp