diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-16 15:12:13 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-17 08:08:22 +0000 |
commit | c23757066d914ac04a39abcd72279c7c3d8919d5 (patch) | |
tree | e391a6f83a6e6ad89785e79cc39d0f503ed5fa53 /svx/source/fmcomp | |
parent | f6a0ed20ba79c72788fa029fe99572e2d5a666e7 (diff) |
loplugin:constantparam in svx
Change-Id: I50fa7e4c7525d2f8107a11d8203957a47680eb80
Reviewed-on: https://gerrit.libreoffice.org/23303
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source/fmcomp')
-rw-r--r-- | svx/source/fmcomp/gridcell.cxx | 4 | ||||
-rw-r--r-- | svx/source/fmcomp/gridctrl.cxx | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index 4288321bcd41..cc14e9de9e99 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -527,7 +527,7 @@ void DbGridColumn::ImplInitWindow( vcl::Window& rParent, const InitWindowFacet _ //= cell controls -DbCellControl::DbCellControl( DbGridColumn& _rColumn, bool /*_bText*/ ) +DbCellControl::DbCellControl( DbGridColumn& _rColumn ) :OPropertyChangeListener(m_aMutex) ,m_pModelChangeBroadcaster(nullptr) ,m_pFieldChangeBroadcaster(nullptr) @@ -1597,7 +1597,7 @@ bool DbFormattedField::commitControl() } DbCheckBox::DbCheckBox( DbGridColumn& _rColumn ) - :DbCellControl( _rColumn, true ) + :DbCellControl( _rColumn ) { setAlignedController( false ); } diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index 40d2e2a69b75..b0770273cd87 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -200,13 +200,13 @@ class DisposeListenerGridBridge : public FmXDisposeListener FmXDisposeMultiplexer* m_pRealListener; public: - DisposeListenerGridBridge( DbGridControl& _rParent, const Reference< XComponent >& _rxObject, sal_Int16 _rId = -1); + DisposeListenerGridBridge( DbGridControl& _rParent, const Reference< XComponent >& _rxObject); virtual ~DisposeListenerGridBridge(); virtual void disposing(const EventObject& _rEvent, sal_Int16 _nId) throw( RuntimeException ) override { m_rParent.disposing(_nId, _rEvent); } }; -DisposeListenerGridBridge::DisposeListenerGridBridge(DbGridControl& _rParent, const Reference< XComponent >& _rxObject, sal_Int16 _rId) +DisposeListenerGridBridge::DisposeListenerGridBridge(DbGridControl& _rParent, const Reference< XComponent >& _rxObject) :FmXDisposeListener(m_aMutex) ,m_rParent(_rParent) ,m_pRealListener(nullptr) @@ -214,7 +214,7 @@ DisposeListenerGridBridge::DisposeListenerGridBridge(DbGridControl& _rParent, co if (_rxObject.is()) { - m_pRealListener = new FmXDisposeMultiplexer(this, _rxObject, _rId); + m_pRealListener = new FmXDisposeMultiplexer(this, _rxObject, 0); m_pRealListener->acquire(); } } @@ -1657,7 +1657,7 @@ void DbGridControl::setDataSource(const Reference< XRowSet >& _xCursor, sal_uInt // start listening on the seek cursor if (m_pSeekCursor) - m_pCursorDisposeListener = new DisposeListenerGridBridge(*this, Reference< XComponent > (Reference< XInterface >(*m_pSeekCursor), UNO_QUERY), 0); + m_pCursorDisposeListener = new DisposeListenerGridBridge(*this, Reference< XComponent > (Reference< XInterface >(*m_pSeekCursor), UNO_QUERY)); } void DbGridControl::RemoveColumns() @@ -1922,7 +1922,7 @@ void DbGridControl::RecalcRows(long nNewTopRow, sal_uInt16 nLinesOnScreen, bool EnablePaint(true); } -void DbGridControl::RowInserted(long nRow, long nNumRows, bool bDoPaint, bool bKeepSelection) +void DbGridControl::RowInserted(long nRow, long nNumRows, bool bDoPaint) { if (nNumRows) { @@ -1937,7 +1937,7 @@ void DbGridControl::RowInserted(long nRow, long nNumRows, bool bDoPaint, bool bK else if (m_nTotalCount >= 0) m_nTotalCount += nNumRows; - DbGridControl_Base::RowInserted(nRow, nNumRows, bDoPaint, bKeepSelection); + DbGridControl_Base::RowInserted(nRow, nNumRows, bDoPaint); m_aBar->InvalidateState(NavigationBar::RECORD_COUNT); } } |