summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-05-31 15:55:20 +0200
committerCarl Hetherington <cth@carlh.net>2022-06-06 23:25:56 +0200
commit7e0c9ddefe19fdded417568d86784bd9ef84eeca (patch)
tree4efdc145da8bcca548bebc42156277cff9acc94c
parentfcba100f0dfd1d4214291abb76f22ebd696c24d4 (diff)
C++11 tidying.
-rw-r--r--src/lib/content_text.h7
-rw-r--r--src/lib/text_content.h4
2 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/content_text.h b/src/lib/content_text.h
index 438a76a6e..d32e880ee 100644
--- a/src/lib/content_text.h
+++ b/src/lib/content_text.h
@@ -18,18 +18,22 @@
*/
+
#ifndef DCPOMATIC_CONTENT_TEXT_H
#define DCPOMATIC_CONTENT_TEXT_H
+
+#include "bitmap_text.h"
#include "dcpomatic_time.h"
#include "rect.h"
#include "types.h"
-#include "bitmap_text.h"
#include <dcp/subtitle_string.h>
#include <list>
+
class Image;
+
class ContentText
{
public:
@@ -78,4 +82,5 @@ public:
std::list<dcp::SubtitleString> subs;
};
+
#endif
diff --git a/src/lib/text_content.h b/src/lib/text_content.h
index d3e9b564b..66bedecf5 100644
--- a/src/lib/text_content.h
+++ b/src/lib/text_content.h
@@ -132,7 +132,7 @@ public:
return _y_scale;
}
- std::list<std::shared_ptr<dcpomatic::Font> > fonts () const {
+ std::list<std::shared_ptr<dcpomatic::Font>> fonts () const {
boost::mutex::scoped_lock lm (_mutex);
return _fonts;
}
@@ -221,7 +221,7 @@ private:
double _x_scale;
/** y scale factor to apply to subtitles */
double _y_scale;
- std::list<std::shared_ptr<dcpomatic::Font> > _fonts;
+ std::list<std::shared_ptr<dcpomatic::Font>> _fonts;
boost::optional<dcp::Colour> _colour;
boost::optional<dcp::Effect> _effect;
boost::optional<dcp::Colour> _effect_colour;