diff options
| author | cah <cth@carlh.net> | 2025-07-10 22:47:19 +0200 |
|---|---|---|
| committer | cah <cth@carlh.net> | 2025-07-10 22:47:19 +0200 |
| commit | 4be4e97abf911e7633172ada950d107a3ed28834 (patch) | |
| tree | c9deceb5f3684fa081db0613da88264732093fcb /src/lib/timer.cc | |
| parent | 727c1aa7da8b325dfa38c8443b1dd356acaf6ec3 (diff) | |
| parent | 42bde2d97039f6d0d645d83db90612d18ebf225a (diff) | |
Merge branch 'compose-to-fmt-take2'
This removes all uses of String::compose, replacing them with fmt and
updating the i18n strings where required.
Diffstat (limited to 'src/lib/timer.cc')
| -rw-r--r-- | src/lib/timer.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/timer.cc b/src/lib/timer.cc index caef89e0e..32525b908 100644 --- a/src/lib/timer.cc +++ b/src/lib/timer.cc @@ -24,7 +24,6 @@ */ -#include "compose.hpp" #include "timer.h" #include "util.h" #include <sys/time.h> @@ -130,7 +129,7 @@ StateTimer::~StateTimer () char buffer[64]; snprintf (buffer, 64, "%.4f", i.second.total_time); string total_time (buffer); - sorted.push_back (make_pair(i.second.total_time, String::compose("\t%1%2 %3 %4", name, total_time, i.second.number, (i.second.total_time / i.second.number)))); + sorted.push_back (make_pair(i.second.total_time, fmt::format("\t{}{} {} {}", name, total_time, i.second.number, (i.second.total_time / i.second.number)))); } sorted.sort ([](pair<double, string> const& a, pair<double, string> const& b) { |
