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/cross_common.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/cross_common.cc')
| -rw-r--r-- | src/lib/cross_common.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/cross_common.cc b/src/lib/cross_common.cc index c3741df03..215325248 100644 --- a/src/lib/cross_common.cc +++ b/src/lib/cross_common.cc @@ -20,7 +20,6 @@ #include "cross.h" -#include "compose.hpp" #include "dcpomatic_assert.h" #include "dcpomatic_log.h" #include <dcp/warnings.h> @@ -104,7 +103,7 @@ Drive::description() const name = _("Unknown"); } - return String::compose(_("%1 (%2 GB) [%3]"), name, gb, _device); + return fmt::format(_("{} ({} GB) [{}]"), name, gb, _device); } @@ -130,8 +129,8 @@ Drive::log_summary() const } #endif - return String::compose( - "Device %1 mounted on %2 size %3 vendor %4 model %5", + return fmt::format( + "Device {} mounted on {} size {} vendor {} model {}", _device, mp, _size, _vendor.get_value_or("[none]"), _model.get_value_or("[none]") ); } |
