diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-07-25 14:51:23 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-07-25 15:21:39 +0200 |
| commit | a1e7f77e8fcfd71cc8bf94d13ceb2decbacc3b50 (patch) | |
| tree | ccad61aa9701ba9b146bd8d2b804e412ebfb1787 /src/subtitle_image.cc | |
| parent | 085d1f2ee3322bde58ed93166d6dbde5c76f44aa (diff) | |
Cleanup: pass EqualityOptions as const&
This exposes a useless assignment of export_differing_subtitles,
which I've removed (and altered the comment accordingly).
Diffstat (limited to 'src/subtitle_image.cc')
| -rw-r--r-- | src/subtitle_image.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/subtitle_image.cc b/src/subtitle_image.cc index 19d7f4eb..f8f8b570 100644 --- a/src/subtitle_image.cc +++ b/src/subtitle_image.cc @@ -132,7 +132,7 @@ dcp::operator!= (SubtitleImage const & a, SubtitleImage const & b) bool -SubtitleImage::equals(shared_ptr<const Subtitle> other_sub, EqualityOptions options, NoteHandler note) const +SubtitleImage::equals(shared_ptr<const Subtitle> other_sub, EqualityOptions const& options, NoteHandler note) const { if (!Subtitle::equals(other_sub, options, note)) { return false; @@ -158,7 +158,6 @@ SubtitleImage::equals(shared_ptr<const Subtitle> other_sub, EqualityOptions opti } else { other->png_image().write(base + "B.png"); } - options.export_differing_subtitles = false; } return false; } |
