@@ -7,12 +7,12 @@ namespace odr::internal {
77TableCursor::TableCursor () noexcept { m_sparse.emplace_back (); }
88
99void TableCursor::add_column (const uint32_t repeat) noexcept {
10- m_col += repeat;
10+ m_column += repeat;
1111}
1212
1313void TableCursor::add_row (const std::uint32_t repeat) noexcept {
1414 m_row += repeat;
15- m_col = 0 ;
15+ m_column = 0 ;
1616 if (repeat > 1 ) {
1717 // TODO assert trivial
1818 m_sparse.clear ();
@@ -28,7 +28,7 @@ void TableCursor::add_row(const std::uint32_t repeat) noexcept {
2828void TableCursor::add_cell (const std::uint32_t colspan,
2929 const std::uint32_t rowspan,
3030 const std::uint32_t repeat) noexcept {
31- const auto new_next_cols = m_col + colspan * repeat;
31+ const std:: uint32_t next_column = m_column + colspan * repeat;
3232
3333 // handle rowspan
3434 auto it = std::begin (m_sparse);
@@ -37,24 +37,26 @@ void TableCursor::add_cell(const std::uint32_t colspan,
3737 m_sparse.emplace_back ();
3838 }
3939 ++it;
40- it->emplace_back (Range{m_col, new_next_cols });
40+ it->emplace_back (Range{m_column, next_column });
4141 }
4242
43- m_col = new_next_cols ;
43+ m_column = next_column ;
4444 handle_rowspan_ ();
4545}
4646
47- TablePosition TableCursor::position () const noexcept { return {m_col, m_row}; }
47+ TablePosition TableCursor::position () const noexcept {
48+ return {m_column, m_row};
49+ }
4850
49- std::uint32_t TableCursor::column () const noexcept { return m_col ; }
51+ std::uint32_t TableCursor::column () const noexcept { return m_column ; }
5052
5153std::uint32_t TableCursor::row () const noexcept { return m_row; }
5254
5355void TableCursor::handle_rowspan_ () noexcept {
5456 auto &s = m_sparse.front ();
5557 auto it = std::begin (s);
56- while (it != std::end (s) && m_col == it->start ) {
57- m_col = it->end ;
58+ while (it != std::end (s) && m_column == it->start ) {
59+ m_column = it->end ;
5860 ++it;
5961 }
6062 s.erase (std::begin (s), it);
0 commit comments