summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qscopedvaluerollback.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2018-08-17 13:07:14 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2018-08-20 09:26:10 +0000
commite4cee4bd572a95eff8d908fb0a1b8cd810f0934e (patch)
tree0f84eb2fb3570d8b3b8f27498caf3fb3997003c0 /src/corelib/tools/qscopedvaluerollback.cpp
parent67984b265a359a217c833938475a51c010057344 (diff)
Add some local const variables to save some repeated computation
QTimeZonePrivate::dataForLocalTime() makes repeated use of the times sixteen hours before and after the target local time, so compute those up front once instead of each time they're needed, giving them expressive names and making code terser. Change-Id: I4b682cc6de2adb98c3ee5489eec4b63ac1090961 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qscopedvaluerollback.cpp')
0 files changed, 0 insertions, 0 deletions