From 3c9fca3cc5349bd91369ea6cc32da37d52290d8b Mon Sep 17 00:00:00 2001 From: David Tardon Date: Sat, 3 Aug 2019 18:27:42 +0200 Subject: WaE: implicitly-declared VSDBullet::operator= is deprecated Change-Id: Ib3f64f30ffe1616c08bb383ed1c462da6d4a31bc --- src/lib/VSDTypes.cpp | 12 ++++++++++++ src/lib/VSDTypes.h | 1 + 2 files changed, 13 insertions(+) diff --git a/src/lib/VSDTypes.cpp b/src/lib/VSDTypes.cpp index 4483f25..5739939 100644 --- a/src/lib/VSDTypes.cpp +++ b/src/lib/VSDTypes.cpp @@ -48,6 +48,18 @@ const VSDMisc &VSDMisc::operator=(const VSDMisc &misc) return *this; } +const VSDBullet &VSDBullet::operator=(const VSDBullet &bullet) +{ + if (this != &bullet) + { + m_bulletStr = bullet.m_bulletStr; + m_bulletFont = bullet.m_bulletFont; + m_bulletFontSize = bullet.m_bulletFontSize; + m_textPosAfterBullet = bullet.m_textPosAfterBullet; + } + return *this; +} + } // namespace libvisio /* vim:set shiftwidth=2 softtabstop=2 expandtab: */ diff --git a/src/lib/VSDTypes.h b/src/lib/VSDTypes.h index 35e8cf1..721d7c9 100644 --- a/src/lib/VSDTypes.h +++ b/src/lib/VSDTypes.h @@ -252,6 +252,7 @@ struct VSDBullet m_bulletFont(bullet.m_bulletFont), m_bulletFontSize(bullet.m_bulletFontSize), m_textPosAfterBullet(bullet.m_textPosAfterBullet) {} + const VSDBullet &operator=(const VSDBullet &bullet); inline bool operator==(const VSDBullet &bullet) const { return ((m_bulletStr == bullet.m_bulletStr) && -- cgit v1.2.3