summaryrefslogtreecommitdiff
path: root/src/shared_string.cc
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2022-08-04 10:51:10 +0200
committerJohannes Altmanninger <aclopte@gmail.com>2022-08-17 00:38:58 +0200
commit01f3d7cbda4b9667fd2e65c6786a0e9140e2890b (patch)
tree9e1cef9e2aff9603208eb70174f2b54aeb2dd657 /src/shared_string.cc
parent31e9fc3cefcbea03d4eaad75ed0dab3da8f3dc6f (diff)
Rename key_to_str() to the more idiomatic to_string()
This makes the function easier to find for newcomers because to_string() is the obvious name. It enables format() to do the conversion automatically which seems like good idea (since there is no other obvious representation). Of course this change makes it a bit harder to grep but that's not a problem with clang tooling. We need to cast the function in one place when calling transform() but that's acceptable.
Diffstat (limited to 'src/shared_string.cc')
0 files changed, 0 insertions, 0 deletions