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.
This commit is contained in:
Luís Pereira
2020-06-26 16:17:34 +01:00
committed by Chih-Hsuan Yen
parent 96fc2dbd43
commit 2df79b77bf
-11
View File
@@ -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;