summaryrefslogtreecommitdiffstats
path: root/src/concurrent/qtconcurrentreducekernel.h
diff options
context:
space:
mode:
authorMarc Mutz <[email protected]>2022-07-18 11:48:55 +0200
committerMarc Mutz <[email protected]>2022-07-20 13:15:58 +0200
commit424438a220164cac23ca76d65bd64de4d59a035b (patch)
tree015f4dac7481a8af7ea62ed5f54a8dd16c999dc7 /src/concurrent/qtconcurrentreducekernel.h
parent25de37381de37dab191bda85e6f1c2d172e6092e (diff)
QLocale/Win: replace hand-written binary search with a call to lower_bound()
Binary search is notoriously hard to implement, and, while I didn't spend time to prove it, this implementation was probably buggy, too (any implementation which is missing a ±1 in the loop body is suspicious). Replace with a call to std::lower_bound(), which has precise semantics and no bugs. Task-number: QTBUG-103721 Change-Id: Ibe12c7d20b8c01e19a6f294f6c1b564b6b484b07 Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: Edward Welbourne <[email protected]>
Diffstat (limited to 'src/concurrent/qtconcurrentreducekernel.h')
0 files changed, 0 insertions, 0 deletions