diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-08-02 18:23:36 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-08-02 18:23:36 +0200 |
| commit | 7d9e108ba3629b2e9120bc1da3354935c41aca37 (patch) | |
| tree | c8ffdb2bca75d62bfe9fa2262e9fc4cd19c45027 /src/frame.h | |
| parent | 6f98afd8021f9475bbd342bdcb39162b3167fa9e (diff) | |
WIP: more hacks.shared-ptr
Diffstat (limited to 'src/frame.h')
| -rw-r--r-- | src/frame.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h index d49be8f1..8a8a7814 100644 --- a/src/frame.h +++ b/src/frame.h @@ -65,6 +65,16 @@ public: Frame (Frame const&) = delete; Frame& operator= (Frame const&) = delete; + Frame(Frame&& other) + : _buffer(std::move(other._buffer)) + {} + + Frame& operator=(Frame&& other) + { + _buffer = std::move(other._buffer); + return *this; + } + uint8_t const * data () const { return _buffer.RoData(); |
