From d834f40c1014ac8926af9aaadc434a49e632b000 Mon Sep 17 00:00:00 2001 From: JF Date: Sun, 8 Mar 2020 21:38:11 +0100 Subject: Do not copy LittleVgl object in DislayApp, use reference instead. Make Cst816s, SpiMaster and St7789 not copiable and not movable --- src/drivers/Cst816s.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/drivers/Cst816s.h') diff --git a/src/drivers/Cst816s.h b/src/drivers/Cst816s.h index 93b05df1..4a5dda60 100644 --- a/src/drivers/Cst816s.h +++ b/src/drivers/Cst816s.h @@ -27,6 +27,12 @@ namespace Pinetime { bool isTouch = false; }; + Cst816S() = default; + Cst816S(const Cst816S&) = delete; + Cst816S& operator=(const Cst816S&) = delete; + Cst816S(Cst816S&&) = delete; + Cst816S& operator=(Cst816S&&) = delete; + void Init(); void Probe(); TouchInfos GetTouchInfo(); -- cgit v1.2.3-70-g09d2