From 93a9b70c7fe4d68f8d41edb25bc00bcac4439667 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 3 May 2017 15:06:07 +0200 Subject: loplugin:checkunusedparams in svtools Change-Id: Iea68d7c0683740acaf4f85c14efe2a33e0cf13e7 Reviewed-on: https://gerrit.libreoffice.org/37201 Tested-by: Jenkins Reviewed-by: Noel Grandin --- dbaccess/source/ui/browser/sbagrid.cxx | 4 ++-- dbaccess/source/ui/control/TableGrantCtrl.cxx | 4 ++-- dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'dbaccess/source') diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx index 0686504c8099..6983e70fbe14 100644 --- a/dbaccess/source/ui/browser/sbagrid.cxx +++ b/dbaccess/source/ui/browser/sbagrid.cxx @@ -1250,7 +1250,7 @@ sal_Int8 SbaGridControl::AcceptDrop( const BrowserAcceptDropEvent& rEvt ) break; long nRow = GetRowAtYPosPixel(rEvt.maPosPixel.Y(), false); - sal_uInt16 nCol = GetColumnAtXPosPixel(rEvt.maPosPixel.X(), false); + sal_uInt16 nCol = GetColumnAtXPosPixel(rEvt.maPosPixel.X()); long nCorrectRowCount = GetRowCount(); if (GetOptions() & DbGridControlOptions::Insert) @@ -1344,7 +1344,7 @@ sal_Int8 SbaGridControl::ExecuteDrop( const BrowserExecuteDropEvent& rEvt ) if ( IsDropFormatSupported( SotClipboardFormatId::STRING ) ) { long nRow = GetRowAtYPosPixel(rEvt.maPosPixel.Y(), false); - sal_uInt16 nCol = GetColumnAtXPosPixel(rEvt.maPosPixel.X(), false); + sal_uInt16 nCol = GetColumnAtXPosPixel(rEvt.maPosPixel.X()); long nCorrectRowCount = GetRowCount(); if (GetOptions() & DbGridControlOptions::Insert) diff --git a/dbaccess/source/ui/control/TableGrantCtrl.cxx b/dbaccess/source/ui/control/TableGrantCtrl.cxx index 1e07be29d9ea..42d50aa5b153 100644 --- a/dbaccess/source/ui/control/TableGrantCtrl.cxx +++ b/dbaccess/source/ui/control/TableGrantCtrl.cxx @@ -393,9 +393,9 @@ void OTableGrantControl::PaintCell( OutputDevice& rDev, const tools::Rectangle& { TTablePrivilegeMap::const_iterator aFind = findPrivilege(m_nDataPos); if(aFind != m_aPrivMap.end()) - PaintTristate(rDev, rRect, isAllowed(nColumnId,aFind->second.nRights) ? TRISTATE_TRUE : TRISTATE_FALSE,isAllowed(nColumnId,aFind->second.nWithGrant)); + PaintTristate(rRect, isAllowed(nColumnId,aFind->second.nRights) ? TRISTATE_TRUE : TRISTATE_FALSE,isAllowed(nColumnId,aFind->second.nWithGrant)); else - PaintTristate(rDev, rRect, TRISTATE_FALSE, false); + PaintTristate(rRect, TRISTATE_FALSE, false); } else { diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx index 8c37af77531f..7058f2d7caf2 100644 --- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx +++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx @@ -1220,7 +1220,7 @@ void OSelectionBrowseBox::PaintCell(OutputDevice& rDev, const tools::Rectangle& long nRow = GetRealRow(m_nSeekRow); if (nRow == BROW_VIS_ROW) - PaintTristate(rDev, rRect, pEntry->IsVisible() ? TRISTATE_TRUE : TRISTATE_FALSE); + PaintTristate(rRect, pEntry->IsVisible() ? TRISTATE_TRUE : TRISTATE_FALSE); else rDev.DrawText(rRect, GetCellText(nRow, nColumnId),DrawTextFlags::VCenter); -- cgit