diff options
Diffstat (limited to 'src/lib/cinema.cc')
| -rw-r--r-- | src/lib/cinema.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/cinema.cc b/src/lib/cinema.cc index 42557efc3..9a3b55e0a 100644 --- a/src/lib/cinema.cc +++ b/src/lib/cinema.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net> + Copyright (C) 2013-2021 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -55,9 +55,8 @@ Cinema::Cinema (cxml::ConstNodePtr node) void Cinema::read_screens (cxml::ConstNodePtr node) { - list<cxml::NodePtr> s = node->node_children ("Screen"); - for (list<cxml::NodePtr>::iterator i = s.begin(); i != s.end(); ++i) { - add_screen (shared_ptr<Screen> (new Screen (*i))); + for (auto i: node->node_children("Screen")) { + add_screen (shared_ptr<Screen>(new Screen(i))); } } |
