summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2019-08-03 18:27:42 +0200
committerDavid Tardon <dtardon@redhat.com>2019-08-03 18:27:42 +0200
commit3c9fca3cc5349bd91369ea6cc32da37d52290d8b (patch)
tree274892b90d933e862174eb422c84bec45720bce2
parent4dfbf7940eb0821c76e2b66b5f27ae9eed31220b (diff)
WaE: implicitly-declared VSDBullet::operator= is deprecated
Change-Id: Ib3f64f30ffe1616c08bb383ed1c462da6d4a31bc
-rw-r--r--src/lib/VSDTypes.cpp12
-rw-r--r--src/lib/VSDTypes.h1
2 files changed, 13 insertions, 0 deletions
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) &&