aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfig_compiler/test8b.cpp.ref
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2019-01-10 20:47:08 +0100
committerAlbert Astals Cid <aacid@kde.org>2019-01-10 21:03:36 +0100
commit601faf2ad9d4c4ed94c5b753461388a1da32ddf3 (patch)
tree2a7a8cada01be95ae477f1e0f8ab9ab92362b842 /autotests/kconfig_compiler/test8b.cpp.ref
parent78da515c5deb984452524069cf7c62a6a68be626 (diff)
downloadkconfig-601faf2ad9d4c4ed94c5b753461388a1da32ddf3.tar.gz
kconfig-601faf2ad9d4c4ed94c5b753461388a1da32ddf3.tar.bz2
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
Diffstat (limited to 'autotests/kconfig_compiler/test8b.cpp.ref')
-rw-r--r--autotests/kconfig_compiler/test8b.cpp.ref2
1 files changed, 2 insertions, 0 deletions
diff --git a/autotests/kconfig_compiler/test8b.cpp.ref b/autotests/kconfig_compiler/test8b.cpp.ref
index 0400de1e..367d8051 100644
--- a/autotests/kconfig_compiler/test8b.cpp.ref
+++ b/autotests/kconfig_compiler/test8b.cpp.ref
@@ -11,6 +11,8 @@ class Test8bHelper
public:
Test8bHelper() : q(nullptr) {}
~Test8bHelper() { delete q; }
+ Test8bHelper(const Test8bHelper&) = delete;
+ Test8bHelper& operator=(const Test8bHelper&) = delete;
Test8b *q;
};
Q_GLOBAL_STATIC(Test8bHelper, s_globalTest8b)