Remove explicitly defined copy operator for style::internal::Font

It was equivalent of default copy operator generated by compiler itself.
Removing this copy operation, we do not change behavior of the code but
resolve the -Wdeprecated-copy warning from GCC.
This commit is contained in:
Nicholas Guriev 2019-11-11 16:15:11 +03:00 committed by John Preston
parent 6d97ae0bce
commit 4c165ea446

View file

@ -28,11 +28,6 @@ public:
Font(int size, uint32 flags, const QString &family); Font(int size, uint32 flags, const QString &family);
Font(int size, uint32 flags, int family); Font(int size, uint32 flags, int family);
Font &operator=(const Font &other) {
ptr = other.ptr;
return (*this);
}
FontData *operator->() const { FontData *operator->() const {
return ptr; return ptr;
} }