summaryrefslogtreecommitdiff
path: root/sal/textenc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-08 12:03:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-09 15:05:54 +0200
commit1dd5e226bd57254024640b10cbbe639f12564655 (patch)
tree6fbbe3197fbb7f74eaa5786919ced46a06cbf39d /sal/textenc
parent027b25ecd54ac97ea2471ca73e3ba89ce052fe76 (diff)
clang-tidy readability-non-const-parameter
Change-Id: I7b2680898dbfc49185fb949349d81f4ac615a470 Reviewed-on: https://gerrit.libreoffice.org/38593 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal/textenc')
-rw-r--r--sal/textenc/converter.cxx4
-rw-r--r--sal/textenc/converter.hxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/sal/textenc/converter.cxx b/sal/textenc/converter.cxx
index 109469fffdb5..5aa07163843e 100644
--- a/sal/textenc/converter.cxx
+++ b/sal/textenc/converter.cxx
@@ -29,7 +29,7 @@
sal::detail::textenc::BadInputConversionAction
sal::detail::textenc::handleBadInputTextToUnicodeConversion(
bool bUndefined, bool bMultiByte, char cByte, sal_uInt32 nFlags,
- sal_Unicode ** pDestBufPtr, sal_Unicode * pDestBufEnd, sal_uInt32 * pInfo)
+ sal_Unicode ** pDestBufPtr, const sal_Unicode * pDestBufEnd, sal_uInt32 * pInfo)
{
*pInfo |= bUndefined
? (bMultiByte
@@ -80,7 +80,7 @@ sal::detail::textenc::handleBadInputTextToUnicodeConversion(
sal::detail::textenc::BadInputConversionAction
sal::detail::textenc::handleBadInputUnicodeToTextConversion(
bool bUndefined, sal_uInt32 nUtf32, sal_uInt32 nFlags, char ** pDestBufPtr,
- char * pDestBufEnd, sal_uInt32 * pInfo, char const * pPrefix,
+ const char * pDestBufEnd, sal_uInt32 * pInfo, char const * pPrefix,
sal_Size nPrefixLen, bool * pPrefixWritten)
{
// TODO! RTL_UNICODETOTEXT_FLAGS_UNDEFINED_REPLACE
diff --git a/sal/textenc/converter.hxx b/sal/textenc/converter.hxx
index bbbd91784fdf..786b8fe89b0b 100644
--- a/sal/textenc/converter.hxx
+++ b/sal/textenc/converter.hxx
@@ -38,12 +38,12 @@ enum BadInputConversionAction
BadInputConversionAction SAL_DLLPUBLIC
handleBadInputTextToUnicodeConversion(
bool bUndefined, bool bMultiByte, char cByte, sal_uInt32 nFlags,
- sal_Unicode ** pDestBufPtr, sal_Unicode * pDestBufEnd, sal_uInt32 * pInfo);
+ sal_Unicode ** pDestBufPtr, const sal_Unicode * pDestBufEnd, sal_uInt32 * pInfo);
BadInputConversionAction SAL_DLLPUBLIC
handleBadInputUnicodeToTextConversion(
bool bUndefined, sal_uInt32 nUtf32, sal_uInt32 nFlags, char ** pDestBufPtr,
- char * pDestBufEnd, sal_uInt32 * pInfo, char const * pPrefix,
+ const char * pDestBufEnd, sal_uInt32 * pInfo, char const * pPrefix,
sal_Size nPrefixLen, bool * pPrefixWritten);
} } }