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/test_dpointer.cpp.ref | 2 ++ 1 file changed, 2 insertions(+) (limited to 'autotests/kconfig_compiler/test_dpointer.cpp.ref') diff --git a/autotests/kconfig_compiler/test_dpointer.cpp.ref b/autotests/kconfig_compiler/test_dpointer.cpp.ref index 5436eb2a..9c6eae37 100644 --- a/autotests/kconfig_compiler/test_dpointer.cpp.ref +++ b/autotests/kconfig_compiler/test_dpointer.cpp.ref @@ -50,6 +50,8 @@ class TestDPointerHelper public: TestDPointerHelper() : q(nullptr) {} ~TestDPointerHelper() { delete q; } + TestDPointerHelper(const TestDPointerHelper&) = delete; + TestDPointerHelper& operator=(const TestDPointerHelper&) = delete; TestDPointer *q; }; Q_GLOBAL_STATIC(TestDPointerHelper, s_globalTestDPointer) -- cgit v1.2.1