Use dcp::compose rather than our own.
[dcpomatic.git] / src / wx / closed_captions_dialog.cc
index 7fcfc0808667a4d0d0271cda359044da98c5a088..73ad98a26e84f772df9b6079f4d48b0078d66bf9 100644 (file)
@@ -24,7 +24,7 @@
 #include "lib/string_text.h"
 #include "lib/butler.h"
 #include "lib/text_content.h"
-#include "lib/compose.hpp"
+#include <dcp/compose.h>
 #include <boost/bind/bind.hpp>
 
 using std::list;
@@ -249,7 +249,7 @@ ClosedCaptionsDialog::update_tracks (shared_ptr<const Film> film)
 
        _track->Clear ();
        for (auto const& i: _tracks) {
-               _track->Append (std_to_wx(String::compose("%1 (%2)", i.name, i.language ? i.language->to_string() : wx_to_std(_("Unknown")))));
+               _track->Append (std_to_wx(dcp::compose("%1 (%2)", i.name, i.language ? i.language->to_string() : wx_to_std(_("Unknown")))));
        }
 
        if (_track->GetCount() > 0) {