summaryrefslogtreecommitdiff
path: root/sal/qa/rtl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-11 15:51:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-12 12:46:45 +0200
commitd4d37662b090cb237585156a47cd8e1f1cbe2656 (patch)
tree70e59ca62b055d7e49325a268d952e0ea057b2e9 /sal/qa/rtl
parentf2e65b3dbcd4c0ca91781067255854a0c5141d60 (diff)
loplugin:constfields in reportdesign,sal,sax
and improve the rewriter so I spend less time fixing formatting Change-Id: Ic2a6e5e31a5a202d2d02a47d77c484a57a5ec514 Reviewed-on: https://gerrit.libreoffice.org/61676 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal/qa/rtl')
-rw-r--r--sal/qa/rtl/strings/test_oustring_convert.cxx8
-rw-r--r--sal/qa/rtl/strings/test_oustring_endswith.cxx6
2 files changed, 7 insertions, 7 deletions
diff --git a/sal/qa/rtl/strings/test_oustring_convert.cxx b/sal/qa/rtl/strings/test_oustring_convert.cxx
index f1992d4295c9..b80c446936dd 100644
--- a/sal/qa/rtl/strings/test_oustring_convert.cxx
+++ b/sal/qa/rtl/strings/test_oustring_convert.cxx
@@ -45,10 +45,10 @@ namespace {
struct TestConvertToString
{
- sal_Unicode aSource[100];
- sal_Int32 nLength;
- rtl_TextEncoding nEncoding;
- sal_uInt32 nFlags;
+ sal_Unicode const aSource[100];
+ sal_Int32 const nLength;
+ rtl_TextEncoding const nEncoding;
+ sal_uInt32 const nFlags;
char const * pStrict;
char const * pRelaxed;
};
diff --git a/sal/qa/rtl/strings/test_oustring_endswith.cxx b/sal/qa/rtl/strings/test_oustring_endswith.cxx
index d4e7bfcd0038..22c68abd1d2e 100644
--- a/sal/qa/rtl/strings/test_oustring_endswith.cxx
+++ b/sal/qa/rtl/strings/test_oustring_endswith.cxx
@@ -71,10 +71,10 @@ void test::oustring::EndsWith::endsWith()
{
struct Data {
char const * str1;
- sal_Int32 str1Len;
+ sal_Int32 const str1Len;
char const * str2;
- sal_Int32 str2Len;
- bool endsWith;
+ sal_Int32 const str2Len;
+ bool const endsWith;
};
Data const data[] = {
{ RTL_CONSTASCII_STRINGPARAM(""), RTL_CONSTASCII_STRINGPARAM(""),