Remove the usage of banned function std::to_string.
Quote form the presubmit checks of std::to_string [1]: > std::to_string is locale dependent and slower than alternatives. For > locale-independent strings, e.g. writing numbers to and from disk > profiles, use base::NumberToString(). For user-visible strings, use > base::FormatNumber() and the related functions in > base/i18n/number_formatting.h. [1] https://cs.chromium.org/chromium/src/PRESUBMIT.py?l=719&rcl=fdd20c8546766e53c8369523080e79b9e60cac7b Bug: None Test: Passes capture_unittests. Change-Id: Iaad9cfdedd5efb55c0a2f411ca505be127dedffa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1660389Reviewed-by:Wei Lee <wtlee@chromium.org> Commit-Queue: Shik Chen <shik@chromium.org> Cr-Commit-Position: refs/heads/master@{#669966}
Showing
Please register or sign in to comment