diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-02-19 12:35:48 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-02-19 15:56:56 +0100 |
commit | 84a3b4d7635d0a5819e8b376efa4d47e74612739 (patch) | |
tree | 1e659ce900d202113b4eedc6d1aac6a35fdb0d8c /svx/source/fmcomp | |
parent | 3b29a4b33e2adc7589e4a5483725d7d765bcaff0 (diff) |
nRow argument is unused
Change-Id: I9401d5af8e537423e7198435457107e12817fc09
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111217
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/fmcomp')
-rw-r--r-- | svx/source/fmcomp/gridctrl.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index 509aa733a373..3bdec10d7145 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -2408,7 +2408,7 @@ sal_uInt32 DbGridControl::GetTotalCellWidth(sal_Int32 nRow, sal_uInt16 nColId) return 30; // FIXME magic number for default cell width } -void DbGridControl::PreExecuteRowContextMenu(sal_uInt16 /*nRow*/, PopupMenu& rMenu) +void DbGridControl::PreExecuteRowContextMenu(PopupMenu& rMenu) { bool bDelete = (m_nOptions & DbGridControlOptions::Delete) && GetSelectRowCount() && !IsCurrentAppending(); // if only a blank row is selected then do not delete @@ -2427,7 +2427,7 @@ void DbGridControl::PreExecuteRowContextMenu(sal_uInt16 /*nRow*/, PopupMenu& rMe rMenu.EnableItem(rMenu.GetItemId("undo"), bCanUndo); } -void DbGridControl::PostExecuteRowContextMenu(sal_uInt16 /*nRow*/, const PopupMenu& rMenu, sal_uInt16 nExecutionResult) +void DbGridControl::PostExecuteRowContextMenu(const PopupMenu& rMenu, sal_uInt16 nExecutionResult) { if (nExecutionResult == rMenu.GetItemId("delete")) { @@ -2529,14 +2529,14 @@ void DbGridControl::copyCellText(sal_Int32 _nRow, sal_uInt16 _nColId) OStringTransfer::CopyString( GetCurrentRowCellText( pColumn,m_xPaintRow ), this ); } -void DbGridControl::executeRowContextMenu( sal_Int32 _nRow, const Point& _rPreferredPos ) +void DbGridControl::executeRowContextMenu(const Point& _rPreferredPos) { VclBuilder aBuilder(nullptr, AllSettings::GetUIRootDir(), "svx/ui/rowsmenu.ui", ""); VclPtr<PopupMenu> aContextMenu(aBuilder.get_menu("menu")); - PreExecuteRowContextMenu( static_cast<sal_uInt16>(_nRow), *aContextMenu ); + PreExecuteRowContextMenu(*aContextMenu ); aContextMenu->RemoveDisabledEntries( true, true ); - PostExecuteRowContextMenu( static_cast<sal_uInt16>(_nRow), *aContextMenu, aContextMenu->Execute( this, _rPreferredPos ) ); + PostExecuteRowContextMenu(*aContextMenu, aContextMenu->Execute(this, _rPreferredPos)); } void DbGridControl::Command(const CommandEvent& rEvt) @@ -2558,7 +2558,7 @@ void DbGridControl::Command(const CommandEvent& rEvt) tools::Long nRow = FirstSelectedRow( ); ::tools::Rectangle aRowRect( GetRowRectPixel( nRow ) ); - executeRowContextMenu( nRow, aRowRect.LeftCenter() ); + executeRowContextMenu(aRowRect.LeftCenter()); // handled return; @@ -2570,7 +2570,7 @@ void DbGridControl::Command(const CommandEvent& rEvt) if (nColId == HandleColumnId) { - executeRowContextMenu( nRow, rEvt.GetMousePosPixel() ); + executeRowContextMenu(rEvt.GetMousePosPixel()); } else if (canCopyCellText(nRow, nColId)) { |