• Brett Wilson's avatar
    Convert <Num>ToString functions to use an overload. · 88ed598e
    Brett Wilson authored
    This avoids needing to manually encode the type in the function call
    as the correct variant will automatically be called for the input type.
    
    Inline forwarding versions are left in the header for backwards
    compatibility. These will be replaced in future patches.
    
    Adds a Double->String16 conversion variant. Even though this is
    currently never used, it feels like we should have this variant available.
    
    Change-Id: I96ed8bb9100e8dbae3e4eff86edd3d1cfa040f8f
    Reviewed-on: https://chromium-review.googlesource.com/772974
    Commit-Queue: Brett Wilson <brettw@chromium.org>
    Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#517237}
    88ed598e
string_number_conversions_unittest.cc 29.6 KB