Simplify QDate::addDays() impementation
authorJon Severinsson <jon@severinsson.net>
Tue, 9 Oct 2012 13:44:42 +0000 (15:44 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 10 Oct 2012 06:45:22 +0000 (08:45 +0200)
commit4ec79a151f9007d739b0970c062eb452133be4d6
treebec2f526dbc7e5415003480dd4059d9759f733d5
parent85c47eed6b6bfdacfb8e6438b6ef8a1185168675
Simplify QDate::addDays() impementation

No need to check for overflows since the change to qint64. as less than
half the qint64 range is a valid julian day, any overflow will be
detected as an invalid date anyway.

Change-Id: I3b6cad24e245ed9418c5804484f846b0b692153a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qdatetime.cpp