summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app/xfa_ffdochandler.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-06-30 19:55:30 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-30 19:55:30 -0700
commitd5fd8e4aa5041b2402b703d824d8736bd5407231 (patch)
treec74be4968988325c6de3ce84ab57ddf655d77b48 /xfa/fxfa/app/xfa_ffdochandler.cpp
parent1e62a254e6a9ad8c6f18a8def3d104e0fe98a2e2 (diff)
downloadpdfium-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 'xfa/fxfa/app/xfa_ffdochandler.cpp')
0 files changed, 0 insertions, 0 deletions