projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move KDM CLI tool into lib/
[dcpomatic.git]
/
src
/
lib
/
player_text.cc
diff --git
a/src/lib/player_text.cc
b/src/lib/player_text.cc
index 16e89b0f10681d756724dd9e0cd49cf8f57aaff0..a3b7ec89ff84e28f46e8a667b6b75cde14a1e850 100644
(file)
--- a/
src/lib/player_text.cc
+++ b/
src/lib/player_text.cc
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2014-20
18
Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2014-20
21
Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
This file is part of DCP-o-matic.
@@
-18,19
+18,22
@@
*/
*/
+
#include "player_text.h"
#include "font.h"
#include "player_text.h"
#include "font.h"
-#include <boost/foreach.hpp>
+
using std::list;
using std::list;
-using boost::shared_ptr;
+using std::shared_ptr;
+using namespace dcpomatic;
+
void
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;
bool got = false;
-
BOOST_FOREACH (shared_ptr<Font> j,
fonts) {
+
for (auto j:
fonts) {
if (*i == *j) {
got = true;
}
if (*i == *j) {
got = true;
}