/*
- Copyright (C) 2014-2018 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2014-2021 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
*/
-#include "player_text.h"
+
#include "font.h"
-#include <boost/foreach.hpp>
+#include "player_text.h"
+
using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
+using namespace dcpomatic;
+
void
-PlayerText::add_fonts (list<shared_ptr<Font> > fonts_)
+PlayerText::add_fonts (list<shared_ptr<Font>> fonts_)
{
- BOOST_FOREACH (shared_ptr<Font> i, fonts_) {
+ for (auto i: fonts_) {
bool got = false;
- BOOST_FOREACH (shared_ptr<Font> j, fonts) {
+ for (auto j: fonts) {
if (*i == *j) {
got = true;
}