[Libreoffice-commits] libvisio.git: src/lib

Fridrich Å trba fridrich.strba at bluewin.ch
Wed Jun 5 01:02:24 PDT 2013


 src/lib/VSDParser.cpp |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit f784bb8be865b2228e0116fa97a071a4be675121
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date:   Wed Jun 5 10:02:00 2013 +0200

    Clarify the code

diff --git a/src/lib/VSDParser.cpp b/src/lib/VSDParser.cpp
index 9fdb8be..7fec7ec 100644
--- a/src/lib/VSDParser.cpp
+++ b/src/lib/VSDParser.cpp
@@ -846,6 +846,9 @@ void libvisio::VSDParser::readGeomList(WPXInputStream *input)
 {
   if (!m_shape.m_geometries.empty() && m_currentGeometryList->empty())
     m_shape.m_geometries.erase(--m_currentGeomListCount);
+  // Since this is a map, this will default construct an element and then
+  // the m_currentGeometryList pointer takes its address and we will work
+  // on it over that pointer.
   m_currentGeometryList = &m_shape.m_geometries[m_currentGeomListCount++];
 
   if (m_header.trailer)


More information about the Libreoffice-commits mailing list