From 2df79b77bfa9a76c2d70fa5faec350d1d0131a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Pereira?= Date: Fri, 26 Jun 2020 16:17:34 +0100 Subject: [PATCH] Remove user declared copy assignment The implicit definition of a copy constructor as defaulted is deprecated if the class has a user-declared copy assignment operator or a user-declared destructor. In this case the user-declared copy assignment is equal to the default-generated. Deleting and just use the default generated seems the best option. --- lib/CharacterColor.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/CharacterColor.h b/lib/CharacterColor.h index 19b180e..7ad8f5d 100644 --- a/lib/CharacterColor.h +++ b/lib/CharacterColor.h @@ -78,17 +78,6 @@ public: */ ColorEntry() : transparent(false), fontWeight(UseCurrentFormat) {} - /** - * Sets the color, transparency and boldness of this color to those of @p rhs. - */ - ColorEntry& operator=(const ColorEntry& rhs) - { - color = rhs.color; - transparent = rhs.transparent; - fontWeight = rhs.fontWeight; - return *this; - } - /** The color value of this entry for display. */ QColor color;