diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-09-15 00:42:15 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-09-27 13:41:46 +0200 |
| commit | c59981ce92898f6be6987f10ebb29161e36e6766 (patch) | |
| tree | a06ac20b947af1f5c96c844052dbd00da60a2c81 /src/lib/bitmap_text.h | |
| parent | 00da1e02bb8ebfbc377ad34d9810ef1cd72b9cd0 (diff) | |
Some const correctness.
Diffstat (limited to 'src/lib/bitmap_text.h')
| -rw-r--r-- | src/lib/bitmap_text.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/bitmap_text.h b/src/lib/bitmap_text.h index b8861c10a..46b6fd142 100644 --- a/src/lib/bitmap_text.h +++ b/src/lib/bitmap_text.h @@ -31,12 +31,12 @@ class Image; class BitmapText { public: - BitmapText (std::shared_ptr<Image> i, dcpomatic::Rect<double> r) + BitmapText (std::shared_ptr<const Image> i, dcpomatic::Rect<double> r) : image (i) , rectangle (r) {} - std::shared_ptr<Image> image; + std::shared_ptr<const 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. |
