Inline CompareOffsets and disallow null offsets
As pointed out by jbroman@ during a review, null offsets will violate the requirements of std::sort. Luckily CompareOffsets is only ever used where offsets will be non-null, so enforce that in the code. Also since it is used exactly once, just inline it. Bug: 791086 Change-Id: I9df7f1201fdc3024a727c62bfd7e917791de12b6 Reviewed-on: https://chromium-review.googlesource.com/905100 Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Reviewed-by:Jeremy Roman <jbroman@chromium.org> Cr-Commit-Position: refs/heads/master@{#534804}
Showing
Please register or sign in to comment