diff options
author | David Tardon <dtardon@redhat.com> | 2019-08-03 18:59:23 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2019-08-03 18:59:52 +0200 |
commit | 8480dedbe1a5fd27df4c0bfc0ecbb868ad081a8b (patch) | |
tree | cf15608cf559e132fda577e8fe3e71cf7d05a942 | |
parent | 3a1c047b8de4c354b4fb866a7c14012e124067ee (diff) |
WaE: implicitly-declared Pointer::operator= is deprecated
Change-Id: I1a092b3e976bd31b1764698001b9f320757d2cc4
-rw-r--r-- | src/lib/VSDParser.cpp | 18 | ||||
-rw-r--r-- | src/lib/VSDParser.h | 1 |
2 files changed, 19 insertions, 0 deletions
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; |