Use dcp::file_to_string().
[dcpomatic.git] / src / lib / player_text.cc
index d31c7d02467b0507e83fc93e1485a5abcda4fa61..a3b7ec89ff84e28f46e8a667b6b75cde14a1e850 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    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>
+
 
 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;
                        }