From 4c165ea4467675562e28bd4646c87e832d421226 Mon Sep 17 00:00:00 2001 From: Nicholas Guriev Date: Mon, 11 Nov 2019 16:15:11 +0300 Subject: [PATCH] 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. --- ui/style/style_core_font.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ui/style/style_core_font.h b/ui/style/style_core_font.h index cd97457..31b5962 100644 --- a/ui/style/style_core_font.h +++ b/ui/style/style_core_font.h @@ -28,11 +28,6 @@ public: Font(int size, uint32 flags, const QString &family); Font(int size, uint32 flags, int family); - Font &operator=(const Font &other) { - ptr = other.ptr; - return (*this); - } - FontData *operator->() const { return ptr; }