X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fplayer_text.cc;h=a3b7ec89ff84e28f46e8a667b6b75cde14a1e850;hp=16e89b0f10681d756724dd9e0cd49cf8f57aaff0;hb=7bc2134d658778e04f1756c255e604b4ab5a5831;hpb=df17bbd25da69fc38eb2dcd8b4a2531cf0bab0bc diff --git a/src/lib/player_text.cc b/src/lib/player_text.cc index 16e89b0f1..a3b7ec89f 100644 --- a/src/lib/player_text.cc +++ b/src/lib/player_text.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2014-2018 Carl Hetherington + Copyright (C) 2014-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,19 +18,22 @@ */ + #include "player_text.h" #include "font.h" -#include + using std::list; -using boost::shared_ptr; +using std::shared_ptr; +using namespace dcpomatic; + void -PlayerText::add_fonts (list > fonts_) +PlayerText::add_fonts (list> fonts_) { - BOOST_FOREACH (shared_ptr i, fonts_) { + for (auto i: fonts_) { bool got = false; - BOOST_FOREACH (shared_ptr j, fonts) { + for (auto j: fonts) { if (*i == *j) { got = true; }