diff options
Diffstat (limited to 'src')
-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; |