Cleanup: use a better loop variable name.
authorCarl Hetherington <cth@carlh.net>
Tue, 8 Aug 2023 13:25:42 +0000 (15:25 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 8 Aug 2023 22:42:59 +0000 (00:42 +0200)
src/lib/film.cc

index 171a9aa4df583f1facc9662ad8d333b034682c02..2840d0236b79029be4dc8ce0045ac43e0a010ef9 100644 (file)
@@ -1941,10 +1941,10 @@ Film::closed_caption_tracks () const
 {
        list<DCPTextTrack> tt;
        for (auto i: content()) {
-               for (auto j: i->text) {
+               for (auto text: i->text) {
                        /* XXX: Empty DCPTextTrack ends up being a magic value here - the "unknown" or "not specified" track */
-                       auto dtt = j->dcp_track().get_value_or(DCPTextTrack());
-                       if (j->type() == TextType::CLOSED_CAPTION && find(tt.begin(), tt.end(), dtt) == tt.end()) {
+                       auto dtt = text->dcp_track().get_value_or(DCPTextTrack());
+                       if (text->type() == TextType::CLOSED_CAPTION && find(tt.begin(), tt.end(), dtt) == tt.end()) {
                                tt.push_back (dtt);
                        }
                }