From 31f04378dbc07d4367dc3b66163aaed171cf0323 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 18 Jun 2019 09:32:00 +0200 Subject: loplugin:passstuffbyref Change-Id: Icb7c22cf4ac95eab54d04e79312fb471ca27bceb Reviewed-on: https://gerrit.libreoffice.org/74246 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sfx2/source/doc/SfxRedactionHelper.cxx | 12 +++++------- sfx2/source/doc/autoredactdialog.cxx | 6 +++--- 2 files changed, 8 insertions(+), 10 deletions(-) (limited to 'sfx2/source/doc') diff --git a/sfx2/source/doc/SfxRedactionHelper.cxx b/sfx2/source/doc/SfxRedactionHelper.cxx index efd06b14fccd..310c0374ca35 100644 --- a/sfx2/source/doc/SfxRedactionHelper.cxx +++ b/sfx2/source/doc/SfxRedactionHelper.cxx @@ -75,7 +75,7 @@ bool SfxRedactionHelper::isRedactMode(const SfxRequest& rReq) return false; } -OUString SfxRedactionHelper::getStringParam(const SfxRequest& rReq, const sal_uInt16& nParamId) +OUString SfxRedactionHelper::getStringParam(const SfxRequest& rReq, sal_uInt16 nParamId) { OUString sStringParam; @@ -128,7 +128,7 @@ void setPageMargins(uno::Reference& xPageProperySet, // #i10613# Extracted from ImplCheckRect::ImplCreate tools::Rectangle ImplCalcActionBounds(const MetaAction& rAct, const OutputDevice& rOut, - const sal_Int32& nStrStartPos, const sal_Int32& nStrEndPos) + sal_Int32 nStrStartPos, sal_Int32 nStrEndPos) { tools::Rectangle aActionBounds; @@ -185,8 +185,7 @@ tools::Rectangle ImplCalcActionBounds(const MetaAction& rAct, const OutputDevice } // End of anon namespace void SfxRedactionHelper::getPageMetaFilesFromDoc(std::vector& aMetaFiles, - std::vector<::Size>& aPageSizes, - const sal_Int32& nPages, + std::vector<::Size>& aPageSizes, sal_Int32 nPages, DocumentToGraphicRenderer& aRenderer) { for (sal_Int32 nPage = 1; nPage <= nPages; ++nPage) @@ -219,11 +218,10 @@ void SfxRedactionHelper::getPageMetaFilesFromDoc(std::vector& aMeta } void SfxRedactionHelper::addPagesToDraw( - uno::Reference& xComponent, const sal_Int32& nPages, + uno::Reference& xComponent, sal_Int32 nPages, const std::vector& aMetaFiles, const std::vector<::Size>& aPageSizes, const PageMargins& aPageMargins, - const std::vector>& r_aTableTargets, - const bool& bIsAutoRedact) + const std::vector>& r_aTableTargets, bool bIsAutoRedact) { // Access the draw pages uno::Reference xDrawPagesSupplier(xComponent, uno::UNO_QUERY); diff --git a/sfx2/source/doc/autoredactdialog.cxx b/sfx2/source/doc/autoredactdialog.cxx index 2a11a2a6e63a..cc0aa1456db8 100644 --- a/sfx2/source/doc/autoredactdialog.cxx +++ b/sfx2/source/doc/autoredactdialog.cxx @@ -182,7 +182,7 @@ OUString TargetsTable::GetNameProposal() return sDefaultTargetName + " " + OUString::number(nHighestTargetId + 1); } -void TargetsTable::setRowData(const int& nRowIndex, const RedactionTarget* pTarget) +void TargetsTable::setRowData(int nRowIndex, const RedactionTarget* pTarget) { OUString sContent = pTarget->sContent; @@ -675,8 +675,8 @@ SfxAddTargetDialog::SfxAddTargetDialog(weld::Window* pParent, const OUString& rN SfxAddTargetDialog::SfxAddTargetDialog(weld::Window* pParent, const OUString& sName, const RedactionTargetType& eTargetType, - const OUString& sContent, const bool& bCaseSensitive, - const bool& bWholeWords) + const OUString& sContent, bool bCaseSensitive, + bool bWholeWords) : GenericDialogController(pParent, "sfx/ui/addtargetdialog.ui", "AddTargetDialog") , m_xName(m_xBuilder->weld_entry("name")) , m_xType(m_xBuilder->weld_combo_box("type")) -- cgit