diff options
author | dsinclair <dsinclair@chromium.org> | 2016-06-30 19:55:30 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-30 19:55:30 -0700 |
commit | d5fd8e4aa5041b2402b703d824d8736bd5407231 (patch) | |
tree | c74be4968988325c6de3ce84ab57ddf655d77b48 /AUTHORS | |
parent | 1e62a254e6a9ad8c6f18a8def3d104e0fe98a2e2 (diff) | |
download | pdfium-d5fd8e4aa5041b2402b703d824d8736bd5407231.tar.xz |
Convert some methods to std::lower_bound and std::find_if.
This CL updates XFA_GetElementTypeForName() to use std::lower_bound instead of
a custom binary search implementation to find the element info.
XFA_GetPropertyOfElement() is changed to use std::find_if. Previously it was
using a custom binary search implementation. Changing this to non-binary search
will allow having the items in g_XFAElementPropertyData be out of XFA_Element
order. There are at most 19 items that need to be searched and often 1 or 2.
Review-Url: https://codereview.chromium.org/2107093004
Diffstat (limited to 'AUTHORS')
0 files changed, 0 insertions, 0 deletions