Home GnuPG

Replace all usages of the deprecated qBinaryFind

Description

Replace all usages of the deprecated qBinaryFind

Where possible qBinaryFind is replaced with std::binary_search. All
other occurrences are replaced with a custom replacement.

I think using this replacement is much more convenient and results
in better readable and less errorprone code than replacing all usages of
qBinaryFind with std::lower_bound() and the necessary additional check
of the resulting iterator, in particular if a lambda expression is used
as custom comparison function.

Details

Provenance
ikloeckerAuthored on Mar 26 2021, 10:07 PM
Parents
rLIBKLEO16733a655af0: In mixed mode create "best of" list of resolved OpenPGP and S/MIME keys
Branches
Unknown
Tags
Unknown