summaryrefslogtreecommitdiff
path: root/src/lib/bitmap_text.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-04 21:16:53 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-07 22:48:29 +0100
commitdd9be86db6cde0afa5da0d1d1ac43b42e05dca26 (patch)
treee56a3f82fb9e1c8602f265bea0d0688d8a018644 /src/lib/bitmap_text.h
parent0d35820cf50d2789752b8776683b26d04642518d (diff)
std::shared_ptr
Diffstat (limited to 'src/lib/bitmap_text.h')
-rw-r--r--src/lib/bitmap_text.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/bitmap_text.h b/src/lib/bitmap_text.h
index 2314c2db0..b8861c10a 100644
--- a/src/lib/bitmap_text.h
+++ b/src/lib/bitmap_text.h
@@ -21,20 +21,22 @@
#ifndef DCPOMATIC_BITMAP_CAPTION_H
#define DCPOMATIC_BITMAP_CAPTION_H
+
#include "rect.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
+
class Image;
class BitmapText
{
public:
- BitmapText (boost::shared_ptr<Image> i, dcpomatic::Rect<double> r)
+ BitmapText (std::shared_ptr<Image> i, dcpomatic::Rect<double> r)
: image (i)
, rectangle (r)
{}
- boost::shared_ptr<Image> image;
+ std::shared_ptr<Image> image;
/** Area that the subtitle covers on its corresponding video, expressed in
* proportions of the image size; e.g. rectangle.x = 0.5 would mean that
* the rectangle starts half-way across the video.