diff options
| author | Albert Astals Cid <aacid@kde.org> | 2019-01-10 20:47:08 +0100 | 
|---|---|---|
| committer | Albert Astals Cid <aacid@kde.org> | 2019-01-10 21:03:36 +0100 | 
| commit | 601faf2ad9d4c4ed94c5b753461388a1da32ddf3 (patch) | |
| tree | 2a7a8cada01be95ae477f1e0f8ab9ab92362b842 /autotests/kconfig_compiler/test_dpointer.cpp.ref | |
| parent | 78da515c5deb984452524069cf7c62a6a68be626 (diff) | |
| download | kconfig-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/test_dpointer.cpp.ref')
| -rw-r--r-- | autotests/kconfig_compiler/test_dpointer.cpp.ref | 2 | 
1 files changed, 2 insertions, 0 deletions
| 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) | 
