summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2018-08-17 14:49:10 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2018-08-20 09:27:27 +0000
commit1acafb12070ce4ae70a8030f00cc65d1c157350a (patch)
tree51c8635b26e1f33f0a5c74a10728f46a6f5ef96e /src/widgets
parent98b030fc952b55b743b699e4b1e185422c0a800d (diff)
Use std::partition_point for faster searches among transitions
QTzTimeZonePrivate's methods were iterating transitions from first to last, or last to first, to find where .atMSecsSinceEpoch crossed some threshold; but the transitions are sorted in order of increasing .atMSecsSinceEpoch, so binary chop would be more efficient than such linear searches. So use std::partition_point() instead. Change-Id: I65c43cb20fca6685a22ea52a4ca2f1089c128ebf Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/widgets')
0 files changed, 0 insertions, 0 deletions