summaryrefslogtreecommitdiff
path: root/src/lib/cinema.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-08 21:56:40 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-08 21:56:56 +0100
commit444809fb888ed99803f2d19c94d3faef067cf348 (patch)
treee221f08bb20af8007b5ae2df028b30c41b36e68e /src/lib/cinema.cc
parent1776f46fd988b4a61ed9dfa64e5b4dd2196cdd66 (diff)
c++ tidying.
Diffstat (limited to 'src/lib/cinema.cc')
-rw-r--r--src/lib/cinema.cc7
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)));
}
}