Add some const& to uses of auto.
[dcpomatic.git] / src / lib / film.cc
index 2780dbf5c6a838f4de159ee29988079478825b9d..b4ad0d0f47f93ed319ed39c087a1bb703b826b9c 100644 (file)
@@ -775,7 +775,7 @@ Film::subtitle_languages () const
 {
        pair<optional<dcp::LanguageTag>, vector<dcp::LanguageTag>> result;
        for (auto i: content()) {
-               for (auto text: i->text) {
+               for (auto const& text: i->text) {
                        if (text->use() && text->type() == TextType::OPEN_SUBTITLE && text->language()) {
                                if (text->language_is_additional()) {
                                        result.second.push_back(text->language().get());