From 78da515c5deb984452524069cf7c62a6a68be626 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Thu, 10 Jan 2019 20:44:17 +0100 Subject: KEmailSettings: Delete copy constructor and assignment operator Summary: If someone was using them, it'd crash since it was raw-copying the d pointer so you would end up with a double delete. This is SIC, but IMHO it's fine, whoever gets a compiler failure has a bug to fix Reviewers: vkrause Reviewed By: vkrause Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D18135 --- src/core/kemailsettings.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core') diff --git a/src/core/kemailsettings.h b/src/core/kemailsettings.h index 4d2f0d50..7d4fb8cf 100644 --- a/src/core/kemailsettings.h +++ b/src/core/kemailsettings.h @@ -117,6 +117,9 @@ public: **/ KEMailSettings(); + KEMailSettings(const KEMailSettings &) = delete; + KEMailSettings& operator=(const KEMailSettings &) = delete; + /** * Default destructor, nothing to see here. **/ -- cgit v1.2.1