X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ffilm.cc;h=399bd3da3ca21f2f5b3f86050e7eea0795b34b03;hb=94d5ba335224db075a95a76654f732ef54a4eabd;hp=29952d0f2e8f57fe6e10a7920af1fbce42940338;hpb=d5e6fa029f1fb7b7dccd32dd2906a0858a876cae;p=dcpomatic.git diff --git a/src/lib/film.cc b/src/lib/film.cc index 29952d0f2..399bd3da3 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -32,6 +32,7 @@ #include "cinema.h" #include "compose.hpp" #include "config.h" +#include "constants.h" #include "cross.h" #include "dcp_content.h" #include "dcp_content_type.h" @@ -56,7 +57,6 @@ #include "text_content.h" #include "transcode_job.h" #include "upload_job.h" -#include "util.h" #include "video_content.h" #include "version.h" #include @@ -809,6 +809,11 @@ Film::isdcf_name (bool if_created_now) const auto raw_name = name (); + auto to_upper = [](string s) { + transform(s.begin(), s.end(), s.begin(), ::toupper); + return s; + }; + /* Split the raw name up into words */ vector words; split (words, raw_name, is_any_of (" _-"));