From 099cde1ded69ff1e26aa0262f27d8f1f58cb1cd3 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 25 Sep 2021 06:05:49 +0200 Subject: tracker/pt: avoid pt_frame object slicing --- tracker-pt/pt-api.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tracker-pt') 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(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 -- cgit v1.2.3