From: Carl Hetherington Date: Sun, 25 Jun 2023 23:20:34 +0000 (+0200) Subject: Cleanup: better variable names. X-Git-Tag: v1.8.74~8 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=54617cea2d186bd62eb44b07292b8722fe59ed4e;p=libdcp.git Cleanup: better variable names. --- diff --git a/src/dcp.cc b/src/dcp.cc index a8a9fd66..7fa84798 100644 --- a/src/dcp.cc +++ b/src/dcp.cc @@ -174,8 +174,9 @@ DCP::read (vector* notes, bool ignore_incorrect_picture_m vector> other_assets; auto ids_and_paths = _asset_map->asset_ids_and_paths(); - for (auto i: ids_and_paths) { - auto const path = i.second; + for (auto id_and_path: ids_and_paths) { + auto const id = id_and_path.first; + auto const path = id_and_path.second; if (path == _directory) { /* I can't see how this is valid, but it's @@ -198,7 +199,7 @@ DCP::read (vector* notes, bool ignore_incorrect_picture_m /* Find the for this asset from the PKL that contains the asset */ optional pkl_type; for (auto j: _pkls) { - pkl_type = j->type(i.first); + pkl_type = j->type(id); if (pkl_type) { break; } @@ -257,7 +258,7 @@ DCP::read (vector* notes, bool ignore_incorrect_picture_m notes->push_back ({VerificationNote::Type::WARNING, VerificationNote::Code::THREED_ASSET_MARKED_AS_TWOD, path}); } } else if (*pkl_type == remove_parameters(FontAsset::static_pkl_type(standard))) { - other_assets.push_back (make_shared(i.first, path)); + other_assets.push_back(make_shared(id, path)); } else if (*pkl_type == "image/png") { /* It's an Interop PNG subtitle; let it go */ } else {