summaryrefslogtreecommitdiff
path: root/src/combine.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/combine.cc')
-rw-r--r--src/combine.cc3
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;
}