path: root/src/corelib/tools/qtimezoneprivate.cpp
diff options
authorEdward Welbourne <>2017-10-27 16:12:48 +0200
committerEdward Welbourne <>2017-11-30 20:19:59 +0000
commit88d5ba540925d2c090d356d7a28a372e7f696b3a (patch)
treef7bdfa49385bcd5629eb1a7837e8acf4bf032f18 /src/corelib/tools/qtimezoneprivate.cpp
parenta99c773972d845e453a86974653df19f60d8e7ca (diff)
QWinTimeZonePrivate: make transition searches more efficient
Iterate rules (now that there's fewer of them than years) with only a secondary iteration on years (when needed - in which case it should never need more than two iterations). In particular, avoid iterating years to the MIN_YEAR and MAX_YEAR extremes on failure; fail faster ! Change-Id: I354af8e0cb1e484c8abda279991e6e1824f9f7d4 Reviewed-by: Thiago Macieira <>
Diffstat (limited to 'src/corelib/tools/qtimezoneprivate.cpp')
0 files changed, 0 insertions, 0 deletions