Tidy up careful_string_filter and add some extra transliterations.
[dcpomatic.git] / src / lib / player_text.cc
index 588e4ef7f8648754e253ba0dc0ec3993733edcbb..626f8fac3a641b7fdfc041bb97946be88f270d2c 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>
+#include "player_text.h"
+
 
 using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
+using namespace dcpomatic;
+
 
 void
-PlayerSubtitles::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;
                        }