From 6deb1daf5e29bdd2bd828afa0cb3dec6d409c3b4 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 16 Oct 2013 15:17:56 +0300 Subject: [PATCH] Make widgets non-copyable --- source/widget.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/widget.h b/source/widget.h index 6cb3d06..461cafe 100644 --- a/source/widget.h +++ b/source/widget.h @@ -53,6 +53,9 @@ protected: PartCache part_cache; Widget(); +private: + Widget(const Widget &); + Widget &operator=(const Widget &); public: virtual ~Widget(); -- 2.43.0