Use dcp::compose rather than our own.
[dcpomatic.git] / src / lib / dcp_subtitle.cc
index 0943a6b08721c49c0c0132acb90273cd14901d6c..21180dc2a76ba1ef883a99615b0013dd5fac076c 100644 (file)
@@ -21,7 +21,7 @@
 
 #include "dcp_subtitle.h"
 #include "exceptions.h"
-#include "compose.hpp"
+#include <dcp/compose.h>
 #include <dcp/interop_subtitle_asset.h>
 #include <dcp/smpte_subtitle_asset.h>
 
@@ -56,7 +56,7 @@ DCPSubtitle::load (boost::filesystem::path file) const
        }
 
        if (!sc) {
-               throw FileError(String::compose(_("Could not read subtitles (%1 / %2)"), interop_error, smpte_error), file);
+               throw FileError(dcp::compose(_("Could not read subtitles (%1 / %2)"), interop_error, smpte_error), file);
        }
 
        return sc;