diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-25 06:05:49 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-26 11:22:50 +0200 |
commit | 099cde1ded69ff1e26aa0262f27d8f1f58cb1cd3 (patch) | |
tree | fff41fb0241025eaa1bbd8232f6d0e348d51d009 /tracker-pt | |
parent | 663269bcbdf98a6b6645f0792a2aaae3a6816162 (diff) |
tracker/pt: avoid pt_frame object slicing
Diffstat (limited to 'tracker-pt')
-rw-r--r-- | tracker-pt/pt-api.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tracker-pt/pt-api.hpp b/tracker-pt/pt-api.hpp index 07a49c45..b87e7d65 100644 --- a/tracker-pt/pt-api.hpp +++ b/tracker-pt/pt-api.hpp @@ -59,6 +59,12 @@ struct pt_frame : pt_pixel_pos_mixin { return static_cast<t const*>(this); } + +protected: + pt_frame(const pt_frame&) = default; + pt_frame(pt_frame&&) = default; + pt_frame& operator=(const pt_frame&) = default; + pt_frame& operator=(pt_frame&&) = default; }; struct pt_preview : pt_frame |