diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-23 15:32:01 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-12-23 17:34:47 +0100 |
| commit | 77f52850eb56fa72bca3c072e9445649dc85493c (patch) | |
| tree | 19c0059c2a30b71028dfaa64f073ec8893546e66 /src/combine.cc | |
| parent | a66f89834d66c089d3328f36d319821d110b7ea1 (diff) | |
Use fmt for conversions from number to string (instead of raw_convert).
Diffstat (limited to 'src/combine.cc')
| -rw-r--r-- | src/combine.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/combine.cc b/src/combine.cc index 74456bfb..3320aab2 100644 --- a/src/combine.cc +++ b/src/combine.cc @@ -46,7 +46,7 @@ #include "filesystem.h" #include "font_asset.h" #include "interop_text_asset.h" -#include "raw_convert.h" +#include <fmt/core.h> #include <boost/filesystem.hpp> #include <set> #include <string> @@ -70,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 (!dcp::filesystem::exists(p)) { return p; } |
