Use dcp::compose rather than our own.
[dcpomatic.git] / src / lib / types.cc
index 228ebf28f6d47bc442e12d8b4f43540c66ae1189..9e87481591273b2b0dd60de3691f48afe58d9fd1 100644 (file)
 */
 
 #include "types.h"
-#include "compose.hpp"
 #include "dcpomatic_assert.h"
 #include "warnings.h"
 #include <dcp/raw_convert.h>
+#include <dcp/compose.h>
 #include <dcp/cpl.h>
 #include <dcp/dcp.h>
 #include <dcp/reel_file_asset.h>
@@ -112,7 +112,7 @@ string_to_text_type (string s)
        } else if (s == "closed-caption") {
                return TextType::CLOSED_CAPTION;
        } else {
-               throw MetadataError (String::compose ("Unknown text type %1", s));
+               throw MetadataError (dcp::compose ("Unknown text type %1", s));
        }
 }