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/test4.cpp.ref | 2 ++ 1 file changed, 2 insertions(+) (limited to 'autotests/kconfig_compiler/test4.cpp.ref') diff --git a/autotests/kconfig_compiler/test4.cpp.ref b/autotests/kconfig_compiler/test4.cpp.ref index 160f340d..29498c2c 100644 --- a/autotests/kconfig_compiler/test4.cpp.ref +++ b/autotests/kconfig_compiler/test4.cpp.ref @@ -11,6 +11,8 @@ class Test4Helper public: Test4Helper() : q(nullptr) {} ~Test4Helper() { delete q; } + Test4Helper(const Test4Helper&) = delete; + Test4Helper& operator=(const Test4Helper&) = delete; Test4 *q; }; Q_GLOBAL_STATIC(Test4Helper, s_globalTest4) -- cgit v1.2.1