summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2022-11-25 12:14:19 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2022-12-07 14:58:39 +0100
commit3e76b841a22bc00ec5f763261e6214dac400312e (patch)
treeec0b67b8b3a708ffe3b8d1fa007492d35b8e76a7 /tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp
parent3f0fda37833dbe32eeec69812f219a74bb7d2ab1 (diff)
Clean up operator>>(QDataStream &in, QDateTime &dateTime)
Make the tz variable more local (saving some #if-ery). Recognize that the Qt 4 (and 5.1) format didn't store offset or zone so we're treating offset from UTC as UTC and zone as local time. Don't assign a variable the value it already has. Omit parameters when they're the default value anyway. Improved some comments. Change-Id: Ie29a66b50ecb8ed8b0566a0ecbc6492c6ba63e61 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp')
0 files changed, 0 insertions, 0 deletions