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/test4.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/test4.cpp.ref')
| -rw-r--r-- | autotests/kconfig_compiler/test4.cpp.ref | 2 | 
1 files changed, 2 insertions, 0 deletions
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)  | 
