From 18f00cbcdab8eaf3db1cb5a7fba3ed78bea565fa Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 9 Jan 2021 09:00:57 +0100 Subject: [PATCH] c++11 tidying. --- src/dcp_reader.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/dcp_reader.cc b/src/dcp_reader.cc index 5784ad0..82808b3 100644 --- a/src/dcp_reader.cc +++ b/src/dcp_reader.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2014-2018 Carl Hetherington + Copyright (C) 2014-2021 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,7 +23,6 @@ #include #include #include -#include #include using std::list; @@ -72,10 +71,10 @@ DCPReader::DCPReader (boost::filesystem::path file) } - BOOST_FOREACH (shared_ptr i, sc->subtitles ()) { + for (auto i: sc->subtitles()) { /* We don't deal with image subs */ - shared_ptr is = dynamic_pointer_cast(i); + auto is = dynamic_pointer_cast(i); if (!is) { continue; } -- 2.30.2