From 699079aa274f32ab7acc035c2e8c558e68f01ba7 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 20:58:40 +0000 Subject: Prepare for a new update Reverting patches so we can apply the latest update and changes can be seen in the spec file and sources. --- diff --git a/src/lib/WP6ContentListener.cpp b/src/lib/WP6ContentListener.cpp index e92d099..4f45a53 100644 --- a/src/lib/WP6ContentListener.cpp +++ b/src/lib/WP6ContentListener.cpp @@ -1311,10 +1311,7 @@ void WP6ContentListener::defineTable(const unsigned char position, const unsigne m_ps->m_tableDefinition.m_columnsProperties.clear(); // pull a table definition off of our stack - auto index = m_parseState->m_nextTableIndice++; - if (index >= m_parseState->m_tableList.size()) - throw ParseException(); - m_parseState->m_currentTable = m_parseState->m_tableList[index]; + m_parseState->m_currentTable = m_parseState->m_tableList[m_parseState->m_nextTableIndice++]; if (!m_parseState->m_currentTable) throw ParseException(); m_parseState->m_currentTable->makeBordersConsistent(); diff --git a/src/lib/WPXTable.h b/src/lib/WPXTable.h index 652e5d0..0767de8 100644 --- a/src/lib/WPXTable.h +++ b/src/lib/WPXTable.h @@ -92,10 +92,6 @@ public: { m_tableList->push_back(table); } - size_t size() const - { - return m_tableList->size(); - } private: void release();