summaryrefslogtreecommitdiff
path: root/src/shared_string.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-03-30 23:06:02 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-03-30 23:06:02 +0100
commit6e1a3885441b14543d663c3ad5175a78153963c3 (patch)
treeb7ed197f28d2b26fc6438f0c8f4b88a44306d87b /src/shared_string.cc
parent13a5af70aebd85f5c21cba346f22eadd98fe333c (diff)
Replace various adhoc operator+ based formatting with format func
Diffstat (limited to 'src/shared_string.cc')
-rw-r--r--src/shared_string.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared_string.cc b/src/shared_string.cc
index a02dfcda..1d0cb5a9 100644
--- a/src/shared_string.cc
+++ b/src/shared_string.cc
@@ -37,8 +37,8 @@ void StringRegistry::debug_stats() const
total_refcount += st.second->refcount - 1;
total_size += (int)st.second->length;
}
- write_debug(" data size: " + to_string(total_size) + ", mean: " + to_string((float)total_size/count));
- write_debug(" refcounts: " + to_string(total_refcount) + ", mean: " + to_string((float)total_refcount/count));
+ write_debug(format(" data size: {}, mean: {}", total_size, (float)total_size/count));
+ write_debug(format(" refcounts: {}, mean: {}", total_refcount, (float)total_refcount/count));
}
}