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/test5.cpp.ref | 2 ++ 1 file changed, 2 insertions(+) (limited to 'autotests/kconfig_compiler/test5.cpp.ref') diff --git a/autotests/kconfig_compiler/test5.cpp.ref b/autotests/kconfig_compiler/test5.cpp.ref index 0c33483b..dfa27f3b 100644 --- a/autotests/kconfig_compiler/test5.cpp.ref +++ b/autotests/kconfig_compiler/test5.cpp.ref @@ -11,6 +11,8 @@ class Test5Helper public: Test5Helper() : q(nullptr) {} ~Test5Helper() { delete q; } + Test5Helper(const Test5Helper&) = delete; + Test5Helper& operator=(const Test5Helper&) = delete; Test5 *q; }; Q_GLOBAL_STATIC(Test5Helper, s_globalTest5) -- cgit v1.2.1