From 8480dedbe1a5fd27df4c0bfc0ecbb868ad081a8b Mon Sep 17 00:00:00 2001 From: David Tardon Date: Sat, 3 Aug 2019 18:59:23 +0200 Subject: WaE: implicitly-declared Pointer::operator= is deprecated Change-Id: I1a092b3e976bd31b1764698001b9f320757d2cc4 --- src/lib/VSDParser.cpp | 18 ++++++++++++++++++ src/lib/VSDParser.h | 1 + 2 files changed, 19 insertions(+) diff --git a/src/lib/VSDParser.cpp b/src/lib/VSDParser.cpp index 03b24fd..5ad8aa3 100644 --- a/src/lib/VSDParser.cpp +++ b/src/lib/VSDParser.cpp @@ -23,6 +23,24 @@ #include "VSDStylesCollector.h" #include "VSDMetaData.h" +namespace libvisio +{ + +const Pointer &Pointer::operator=(const Pointer &ptr) +{ + if (this != &ptr) + { + Type = ptr.Type; + Offset = ptr.Offset; + Length = ptr.Length; + Format = ptr.Format; + ListSize = ptr.ListSize; + } + return *this; +} + +} + libvisio::VSDParser::VSDParser(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter, librevenge::RVNGInputStream *container) : m_input(input), m_painter(painter), m_container(container), m_header(), m_collector(nullptr), m_shapeList(), m_currentLevel(0), m_stencils(), m_currentStencil(nullptr), m_shape(), m_isStencilStarted(false), m_isInStyles(false), diff --git a/src/lib/VSDParser.h b/src/lib/VSDParser.h index be8515b..e8fd64c 100644 --- a/src/lib/VSDParser.h +++ b/src/lib/VSDParser.h @@ -37,6 +37,7 @@ struct Pointer : Type(0), Offset(0), Length(0), Format(0), ListSize(0) {} Pointer(const Pointer &ptr) : Type(ptr.Type), Offset(ptr.Offset), Length(ptr.Length), Format(ptr.Format), ListSize(ptr.ListSize) {} + const Pointer &operator=(const Pointer &ptr); unsigned Type; unsigned Offset; unsigned Length; -- cgit v1.2.3