Try to fix some warnings.
[dcpomatic.git] / src / lib / text_content.cc
index ac49be474e1ae70c4685bfaa5b5d93df966a8bd0..e2f5264dfdad889912be6806371389c8aff52777 100644 (file)
@@ -405,9 +405,7 @@ TextContent::identifier () const
           types of subtitle content involve fonts.
        */
        BOOST_FOREACH (shared_ptr<Font> f, _fonts) {
-               for (int i = 0; i < FontFiles::VARIANTS; ++i) {
-                       s += "_" + f->file(static_cast<FontFiles::Variant>(i)).get_value_or("Default").string();
-               }
+               s += "_" + f->file().get_value_or("Default").string();
        }
 
        /* The DCP track and language are for metadata only, and don't affect