diff options
Diffstat (limited to 'src/util.cc')
| -rw-r--r-- | src/util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<string> 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; } |
