diff options
author | David Tardon <dtardon@redhat.com> | 2019-08-03 18:37:24 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2019-08-03 18:51:15 +0200 |
commit | 4136243660429bc2f9775847e3992b7446f2805b (patch) | |
tree | 098845493f6e36a9b56dd40f12976e543635c968 | |
parent | ee13a1bffa6d78924d1d2312abc5d86078b2b251 (diff) |
WaE: implicitly-declared VSDFillStyle::operator= is deprecated
Change-Id: Ie3ca69e7386ebbf04f7b5972f3ed96139e26015c
-rw-r--r-- | src/lib/VSDStyles.cpp | 20 | ||||
-rw-r--r-- | src/lib/VSDStyles.h | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/VSDStyles.cpp b/src/lib/VSDStyles.cpp index 1ea27a9..ee48226 100644 --- a/src/lib/VSDStyles.cpp +++ b/src/lib/VSDStyles.cpp @@ -87,6 +87,26 @@ const VSDLineStyle &VSDLineStyle::operator=(const VSDLineStyle &style) return *this; } +const VSDFillStyle &VSDFillStyle::operator=(const VSDFillStyle &style) +{ + if (this != &style) + { + fgColour = style.fgColour; + bgColour = style.bgColour; + pattern = style.pattern; + fgTransparency = style.fgTransparency; + bgTransparency = style.bgTransparency; + shadowFgColour = style.shadowFgColour; + shadowPattern = style.shadowPattern; + shadowOffsetX = style.shadowOffsetX; + shadowOffsetY = style.shadowOffsetY; + qsFillColour = style.qsFillColour; + qsShadowColour = style.qsShadowColour; + qsFillMatrix = style.qsFillMatrix; + } + return *this; +} + } libvisio::VSDStyles::VSDStyles() : diff --git a/src/lib/VSDStyles.h b/src/lib/VSDStyles.h index 38f3b6d..b793cbb 100644 --- a/src/lib/VSDStyles.h +++ b/src/lib/VSDStyles.h @@ -180,6 +180,7 @@ struct VSDFillStyle qsFillColour(style.qsFillColour), qsShadowColour(style.qsShadowColour), qsFillMatrix(style.qsFillMatrix) {} ~VSDFillStyle() {} + const VSDFillStyle &operator=(const VSDFillStyle &style); void override(const VSDOptionalFillStyle &style, const VSDXTheme *theme) { ASSIGN_OPTIONAL(style.pattern, pattern); |