From 13154bc1a9b341f46994607fdde2e725444a6e21 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 10 Jul 2021 01:24:48 +0200 Subject: Remove String namespace from around compose(). --- src/util.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util.cc') diff --git a/src/util.cc b/src/util.cc index a36e2429..222b5a05 100644 --- a/src/util.cc +++ b/src/util.cc @@ -281,7 +281,7 @@ dcp::file_to_string (boost::filesystem::path p, uintmax_t max_length) { auto len = boost::filesystem::file_size (p); if (len > max_length) { - throw MiscError (String::compose("Unexpectedly long file (%1)", p.string())); + throw MiscError (compose("Unexpectedly long file (%1)", p.string())); } auto f = fopen_boost (p, "r"); @@ -414,7 +414,7 @@ dcp::unique_string (vector existing, string base) { int const max_tries = existing.size() + 1; for (int i = 0; i < max_tries; ++i) { - string trial = String::compose("%1%2", base, i); + string trial = compose("%1%2", base, i); if (find(existing.begin(), existing.end(), trial) == existing.end()) { return trial; } -- cgit v1.2.3