summaryrefslogtreecommitdiffstats
path: root/tests/auto/network/access/qnetworkreply
diff options
context:
space:
mode:
authorJohn Layt <jlayt@kde.org>2013-08-01 15:51:08 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-21 14:25:07 +0200
commit6be9cb2068fcf21c8957e5aed4c235efc2eb6b2e (patch)
tree8c7c3f7d54cd1192b8f1fbdafd4cdff448f0d4eb /tests/auto/network/access/qnetworkreply
parentc8b0c428d2b0eaab925f65deee5b5ebe050ecfa6 (diff)
QDateTime - Use the copy constructor in addDays/Months/Years
Currently the QDateTime::addDays/Months/Years methods copy all the d member variables themselves, but this is bad practice as it means 3 more places where we have to get the copy code correct. Instead use the copy constructor to do what it's meant to. This saves more changes when we add proper OffsetFromUTC and TimeZone support. Change-Id: Ie2641d0cb58405335206edcce2e2db30702b78bf Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/network/access/qnetworkreply')
0 files changed, 0 insertions, 0 deletions