summaryrefslogtreecommitdiff
path: root/src/lib/content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-23 21:53:32 +0100
committerCarl Hetherington <cth@carlh.net>2024-12-26 00:27:08 +0100
commit8caf013a9b8d709ed7c3d5e9febee0067e6fcf1f (patch)
tree40da87cb357e8b1c54a1464bdbac2d014640e30c /src/lib/content.cc
parentcec6ff92aef45c687085ecfc1059004407c18c57 (diff)
Replace String::compose with fmt::format().
Diffstat (limited to 'src/lib/content.cc')
-rw-r--r--src/lib/content.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/content.cc b/src/lib/content.cc
index 5c44cb47a..0abb061c8 100644
--- a/src/lib/content.cc
+++ b/src/lib/content.cc
@@ -26,7 +26,6 @@
#include "audio_content.h"
#include "change_signaller.h"
-#include "compose.hpp"
#include "content.h"
#include "content_factory.h"
#include "exceptions.h"
@@ -309,9 +308,9 @@ Content::clone() const
string
Content::technical_summary () const
{
- auto s = String::compose ("%1 %2 %3", path_summary(), digest(), position().seconds());
+ auto s = fmt::format("{} {} {}", path_summary(), digest(), position().seconds());
if (_video_frame_rate) {
- s += String::compose(" %1", *_video_frame_rate);
+ s += fmt::format(" {}", *_video_frame_rate);
}
return s;
}
@@ -478,7 +477,7 @@ Content::add_properties (shared_ptr<const Film>, list<UserProperty>& p) const
}
}
if (paths_to_show < number_of_paths()) {
- paths += String::compose("... and %1 more", number_of_paths() - paths_to_show);
+ paths += fmt::format("... and {} more", number_of_paths() - paths_to_show);
}
p.push_back (
UserProperty(