diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-10-26 15:16:30 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-10-26 15:16:30 +0200 |
| commit | 4b01fa582bc6a30ce75be72275238e6cc7d0dfbe (patch) | |
| tree | 508e629287c4d3bda998b28f905744a054dc7c5b /src/lib/active_text.cc | |
| parent | 96ff854f8bca0ec9215bfb5933766fcbee106398 (diff) | |
Allow move construction of ActiveText.
Diffstat (limited to 'src/lib/active_text.cc')
| -rw-r--r-- | src/lib/active_text.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/active_text.cc b/src/lib/active_text.cc index 1e0fd6adb..2a5c4d836 100644 --- a/src/lib/active_text.cc +++ b/src/lib/active_text.cc @@ -32,6 +32,23 @@ using boost::optional; using namespace dcpomatic; +ActiveText::ActiveText(ActiveText&& other) + : _data(std::move(other._data)) +{ + +} + + +ActiveText& +ActiveText::operator=(ActiveText&& other) +{ + if (this != &other) { + _data = std::move(other._data); + } + return *this; +} + + /** Get the open captions that should be burnt into a given period. * @param period Period of interest. * @param always_burn_captions Always burn captions even if their content is not set to burn. |
