From 601faf2ad9d4c4ed94c5b753461388a1da32ddf3 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Thu, 10 Jan 2019 20:47:08 +0100 Subject: kconfig_compiler: delete the assignment operator and copy constructor Summary: of the generated class that has a pointer and raw copy would be bad. Those generated classes are internal and nobody would probably have this, but being safe never hurts Reviewers: vkrause Reviewed By: vkrause Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D18136 --- autotests/kconfig_compiler/test10.cpp.ref | 2 ++ 1 file changed, 2 insertions(+) (limited to 'autotests/kconfig_compiler/test10.cpp.ref') diff --git a/autotests/kconfig_compiler/test10.cpp.ref b/autotests/kconfig_compiler/test10.cpp.ref index 12e3a431..f5590c20 100644 --- a/autotests/kconfig_compiler/test10.cpp.ref +++ b/autotests/kconfig_compiler/test10.cpp.ref @@ -11,6 +11,8 @@ class Test10Helper public: Test10Helper() : q(nullptr) {} ~Test10Helper() { delete q; } + Test10Helper(const Test10Helper&) = delete; + Test10Helper& operator=(const Test10Helper&) = delete; Test10 *q; }; Q_GLOBAL_STATIC(Test10Helper, s_globalTest10) -- cgit v1.2.1