From: Carl Hetherington Date: Tue, 8 Aug 2023 13:25:42 +0000 (+0200) Subject: Cleanup: use a better loop variable name. X-Git-Tag: v2.16.61~14 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=42e315363f3e03984e7f77d7b73b0a0edd5466be Cleanup: use a better loop variable name. --- diff --git a/src/lib/film.cc b/src/lib/film.cc index 171a9aa4d..2840d0236 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -1941,10 +1941,10 @@ Film::closed_caption_tracks () const { list 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); } }