From a8dd6998407cd27daf160c45ae77a8d0ae5cf1f7 Mon Sep 17 00:00:00 2001 From: Ismael Asensio Date: Sun, 22 Dec 2019 17:46:48 +0100 Subject: Get rid of -Wdeprecated-copy warning Summary: Remove the explicit copy constructor of `KItemListStyleOption`, since it does not add any logic to what the implicit copy constructor does, but triggers a compiler warning if we don't overload `operator=` too. Test Plan: Compiles without `-Wdeprecated-copy` warning No behavior changes Reviewers: elvisangelaccio, #dolphin Reviewed By: elvisangelaccio, #dolphin Subscribers: kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D26585 --- src/kitemviews/kitemliststyleoption.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/kitemviews/kitemliststyleoption.h') diff --git a/src/kitemviews/kitemliststyleoption.h b/src/kitemviews/kitemliststyleoption.h index 93aafac1f..381f4bbe5 100644 --- a/src/kitemviews/kitemliststyleoption.h +++ b/src/kitemviews/kitemliststyleoption.h @@ -31,7 +31,6 @@ class DOLPHIN_EXPORT KItemListStyleOption { public: KItemListStyleOption(); - KItemListStyleOption(const KItemListStyleOption& other); virtual ~KItemListStyleOption(); QRect rect; @@ -48,8 +47,6 @@ public: bool operator==(const KItemListStyleOption& other) const; bool operator!=(const KItemListStyleOption& other) const; - - }; #endif -- cgit v1.3.1