From 77add31b0e5d38e307dd5694b634d5614e9133b4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 27 May 2021 14:16:40 +0200 Subject: C++11 cleanup. --- src/decrypted_kdm.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/decrypted_kdm.cc b/src/decrypted_kdm.cc index 03c5ea26..b2d8e618 100644 --- a/src/decrypted_kdm.cc +++ b/src/decrypted_kdm.cc @@ -264,8 +264,8 @@ DecryptedKDM::DecryptedKDM ( , _content_title_text (content_title_text) , _issue_date (issue_date) { - for (map, Key>::const_iterator i = keys.begin(); i != keys.end(); ++i) { - add_key (i->first->key_type(), i->first->key_id().get(), i->second, cpl_id, Standard::SMPTE); + for (auto const& i: keys) { + add_key (i.first->key_type(), i.first->key_id().get(), i.second, cpl_id, Standard::SMPTE); } } -- cgit v1.2.3