summaryrefslogtreecommitdiff
path: root/sw/qa/core
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-29 16:08:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-30 10:58:56 +0200
commit008199ee75ed4edc250270628f6e6cb1677dbbc9 (patch)
treedc2c46faa050fee4c74a1a7ec2a398273f54c7c1 /sw/qa/core
parentda8cf43b4f2af008df231f5e0629c71bd7f2b762 (diff)
loplugin:constparam in various
Change-Id: I6821a3946f2e8fabf26558a84370c16ac8827fed Reviewed-on: https://gerrit.libreoffice.org/41721 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/qa/core')
-rw-r--r--sw/qa/core/Test-BigPtrArray.cxx2
-rw-r--r--sw/qa/core/test_ToxTextGenerator.cxx2
-rw-r--r--sw/qa/core/uwriter.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/sw/qa/core/Test-BigPtrArray.cxx b/sw/qa/core/Test-BigPtrArray.cxx
index 263adae27501..aaa8a911d00e 100644
--- a/sw/qa/core/Test-BigPtrArray.cxx
+++ b/sw/qa/core/Test-BigPtrArray.cxx
@@ -75,7 +75,7 @@ namespace /* private */
return true;
}
- void releaseBigPtrArrayContent(BigPtrArray& bparr)
+ void releaseBigPtrArrayContent(BigPtrArray const & bparr)
{
for (sal_uLong i = 0; i < bparr.Count(); i++)
delete bparr[i];
diff --git a/sw/qa/core/test_ToxTextGenerator.cxx b/sw/qa/core/test_ToxTextGenerator.cxx
index 9df7b50d1a21..0803d21be61d 100644
--- a/sw/qa/core/test_ToxTextGenerator.cxx
+++ b/sw/qa/core/test_ToxTextGenerator.cxx
@@ -115,7 +115,7 @@ public:
class ToxTextGeneratorWithMockedChapterField : public ToxTextGenerator {
public:
- explicit ToxTextGeneratorWithMockedChapterField(SwForm &form)
+ explicit ToxTextGeneratorWithMockedChapterField(SwForm const &form)
: ToxTextGenerator(form, std::make_shared<MockedToxTabStopTokenHandler>()),
mChapterFieldType(), mChapterField(&mChapterFieldType) {}
diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx
index e3bddb2d887d..d619d94282a0 100644
--- a/sw/qa/core/uwriter.cxx
+++ b/sw/qa/core/uwriter.cxx
@@ -1451,7 +1451,7 @@ void SwDocTest::testTableAutoFormats()
}
static OUString
-translitTest(SwDoc & rDoc, SwPaM & rPaM, TransliterationFlags const nType)
+translitTest(SwDoc & rDoc, const SwPaM & rPaM, TransliterationFlags const nType)
{
utl::TransliterationWrapper aTrans(
::comphelper::getProcessComponentContext(), nType);