diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-03-24 11:56:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-03-24 11:56:51 +0100 |
| commit | fe3c593910ed2364add3bb06c0b5ea51554c338d (patch) | |
| tree | 1bd64ab8d8cf72865a3c1c81c0c7790ea480a402 /src/combine.cc | |
| parent | 5d002b3c904dd8fbad1bec8af119f3cd06b48d89 (diff) | |
Replace simple uses of raw_convert<string> with fmt.fmt
Diffstat (limited to 'src/combine.cc')
| -rw-r--r-- | src/combine.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/combine.cc b/src/combine.cc index e974c407..48fa9b67 100644 --- a/src/combine.cc +++ b/src/combine.cc @@ -46,6 +46,7 @@ #include "font_asset.h" #include "interop_subtitle_asset.h" #include "raw_convert.h" +#include <fmt/format.h> #include <boost/filesystem.hpp> #include <set> #include <string> @@ -69,7 +70,7 @@ make_unique (boost::filesystem::path path) } for (int i = 0; i < 10000; ++i) { - boost::filesystem::path p = path.parent_path() / (path.stem().string() + dcp::raw_convert<string>(i) + path.extension().string()); + boost::filesystem::path p = path.parent_path() / (path.stem().string() + fmt::to_string(i) + path.extension().string()); if (!boost::filesystem::exists(p)) { return p; } |
