[Libreoffice-commits] core.git: sc/source sw/source

Noel Grandin noel at peralex.com
Mon Apr 4 08:49:53 UTC 2016


 sc/source/core/data/fillinfo.cxx |    2 +-
 sw/source/uibase/dbui/dbmgr.cxx  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 0085eb42fdb7cceece11004841c50f3008c9e120
Author: Noel Grandin <noel at peralex.com>
Date:   Mon Apr 4 09:59:56 2016 +0200

    cppcheck:passedByValue
    
    Change-Id: Ideb62ec1838463f65fc763650294e4fa311567f1
    Reviewed-on: https://gerrit.libreoffice.org/23797
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/sc/source/core/data/fillinfo.cxx b/sc/source/core/data/fillinfo.cxx
index b32f483..53f0bce 100644
--- a/sc/source/core/data/fillinfo.cxx
+++ b/sc/source/core/data/fillinfo.cxx
@@ -338,7 +338,7 @@ void initColWidths(RowInfo* pRowInfo, ScDocument* pDoc, double fColScale, SCTAB
     }
 }
 
-bool handleConditionalFormat(ScConditionalFormatList* pCondFormList, const std::vector<sal_uInt32> rCondFormats,
+bool handleConditionalFormat(ScConditionalFormatList* pCondFormList, const std::vector<sal_uInt32>& rCondFormats,
         CellInfo* pInfo, ScStyleSheetPool* pStlPool,
         const ScAddress& rAddr, bool& bHidden, bool& bHideFormula, bool bTabProtect)
 {
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx
index 75fa402..5d4914f 100644
--- a/sw/source/uibase/dbui/dbmgr.cxx
+++ b/sw/source/uibase/dbui/dbmgr.cxx
@@ -888,7 +888,7 @@ static void lcl_SaveDebugDoc( SfxObjectShell *xTargetDocShell,
 
 static bool lcl_SaveDoc(
     const INetURLObject* pFileURL,
-    const std::shared_ptr<const SfxFilter> pStoreToFilter,
+    const std::shared_ptr<const SfxFilter>& pStoreToFilter,
     const OUString* pStoreToFilterOptions,
     const uno::Sequence< beans::PropertyValue >* pSaveToFilterData,
     const bool bIsPDFexport,


More information about the Libreoffice-commits mailing list