diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-22 12:20:11 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-23 09:13:13 +0200 |
commit | 28d53e1a5fe5c84f6dea9793e8cc819e58fee684 (patch) | |
tree | 4c352f056ece9d1d851d3fa78c60bb01e3d406cc /svtools/source/table | |
parent | f3d1ac75c4b7fa63022e54a9cbff46ba99535076 (diff) |
loplugin:constantparm in svtools
Change-Id: I637efc68d02da527cf543d7e7bfbf51e5e70a1ad
Diffstat (limited to 'svtools/source/table')
-rw-r--r-- | svtools/source/table/tablecontrol_impl.cxx | 20 | ||||
-rw-r--r-- | svtools/source/table/tablecontrol_impl.hxx | 4 | ||||
-rw-r--r-- | svtools/source/table/tablegeometry.hxx | 7 |
3 files changed, 14 insertions, 17 deletions
diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx index 740e0c712c37..b023d909bf14 100644 --- a/svtools/source/table/tablecontrol_impl.cxx +++ b/svtools/source/table/tablecontrol_impl.cxx @@ -1324,7 +1324,7 @@ namespace svt { namespace table else m_aSelectedRows.push_back(m_nCurRow); invalidateRow( m_nCurRow ); - ensureVisible(m_nCurColumn,m_nCurRow,false); + ensureVisible(m_nCurColumn,m_nCurRow); selectionChanged = true; bSuccess = true; } @@ -1354,7 +1354,7 @@ namespace svt { namespace table m_aSelectedRows.push_back(m_nCurRow); invalidateRow( m_nCurRow ); } - ensureVisible(m_nCurColumn,m_nCurRow,false); + ensureVisible(m_nCurColumn,m_nCurRow); selectionChanged = true; bSuccess = true; } @@ -1518,7 +1518,7 @@ namespace svt { namespace table } m_pSelEngine->SetAnchor(true); m_nAnchor = m_nCurRow; - ensureVisible(m_nCurColumn, m_nCurRow, false); + ensureVisible(m_nCurColumn, m_nCurRow); selectionChanged = true; bSuccess = true; } @@ -1599,7 +1599,7 @@ namespace svt { namespace table } m_pSelEngine->SetAnchor(true); m_nAnchor = m_nCurRow; - ensureVisible(m_nCurColumn, m_nCurRow, false); + ensureVisible(m_nCurColumn, m_nCurRow); selectionChanged = true; bSuccess = true; } @@ -1627,7 +1627,7 @@ namespace svt { namespace table m_nCurRow = 0; m_nAnchor = m_nCurRow; m_pSelEngine->SetAnchor(true); - ensureVisible(m_nCurColumn, 0, false); + ensureVisible(m_nCurColumn, 0); selectionChanged = true; bSuccess = true; } @@ -1653,7 +1653,7 @@ namespace svt { namespace table m_nCurRow = m_nRowCount-1; m_nAnchor = m_nCurRow; m_pSelEngine->SetAnchor(true); - ensureVisible(m_nCurColumn, m_nRowCount-1, false); + ensureVisible(m_nCurColumn, m_nRowCount-1); selectionChanged = true; bSuccess = true; } @@ -1991,12 +1991,12 @@ namespace svt { namespace table m_nCurRow = _nRow; // ensure that the new cell is visible - ensureVisible( m_nCurColumn, m_nCurRow, false ); + ensureVisible( m_nCurColumn, m_nCurRow ); return true; } - void TableControl_Impl::ensureVisible( ColPos _nColumn, RowPos _nRow, bool _bAcceptPartialVisibility ) + void TableControl_Impl::ensureVisible( ColPos _nColumn, RowPos _nRow ) { DBG_ASSERT( ( _nColumn >= 0 ) && ( _nColumn < m_nColumnCount ) && ( _nRow >= 0 ) && ( _nRow < m_nRowCount ), @@ -2008,7 +2008,7 @@ namespace svt { namespace table impl_scrollColumns( _nColumn - m_nLeftColumn ); else { - TableSize nVisibleColumns = impl_getVisibleColumns( _bAcceptPartialVisibility ); + TableSize nVisibleColumns = impl_getVisibleColumns( false/*bAcceptPartialVisibility*/ ); if ( _nColumn > m_nLeftColumn + nVisibleColumns - 1 ) { impl_scrollColumns( _nColumn - ( m_nLeftColumn + nVisibleColumns - 1 ) ); @@ -2021,7 +2021,7 @@ namespace svt { namespace table impl_scrollRows( _nRow - m_nTopRow ); else { - TableSize nVisibleRows = impl_getVisibleRows( _bAcceptPartialVisibility ); + TableSize nVisibleRows = impl_getVisibleRows( false/*_bAcceptPartialVisibility*/ ); if ( _nRow > m_nTopRow + nVisibleRows - 1 ) impl_scrollRows( _nRow - ( m_nTopRow + nVisibleRows - 1 ) ); } diff --git a/svtools/source/table/tablecontrol_impl.hxx b/svtools/source/table/tablecontrol_impl.hxx index 43acca35fa69..e2153d9ab8ff 100644 --- a/svtools/source/table/tablecontrol_impl.hxx +++ b/svtools/source/table/tablecontrol_impl.hxx @@ -175,10 +175,8 @@ namespace svt { namespace table @param _nRow the row position which should be visibleMust be non-negative, and smaller than the row count. - @param _bAcceptPartialVisibility - <TRUE/> if it's okay that the given coordinate is only partially visible */ - void ensureVisible( ColPos _nColumn, RowPos _nRow, bool _bAcceptPartialVisibility ); + void ensureVisible( ColPos _nColumn, RowPos _nRow ); /** retrieves the content of the given cell, converted to a string */ diff --git a/svtools/source/table/tablegeometry.hxx b/svtools/source/table/tablegeometry.hxx index 6fb29aa5f7b5..3c40a60b0026 100644 --- a/svtools/source/table/tablegeometry.hxx +++ b/svtools/source/table/tablegeometry.hxx @@ -132,11 +132,10 @@ namespace svt { namespace table TableControl_Impl const & _rControl, Rectangle const & _rBoundaries, ColPos const _nCol, - RowPos const _nRow, - bool const i_alllowVirtualCells = false + RowPos const _nRow ) - :m_aRow( _rControl, _rBoundaries, _nRow, i_alllowVirtualCells ) - ,m_aCol( _rControl, _rBoundaries, _nCol, i_alllowVirtualCells ) + :m_aRow( _rControl, _rBoundaries, _nRow, false/*allowVirtualCells*/ ) + ,m_aCol( _rControl, _rBoundaries, _nCol, false/*allowVirtualCells*/ ) { } |