diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-08 12:03:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-09 15:05:54 +0200 |
commit | 1dd5e226bd57254024640b10cbbe639f12564655 (patch) | |
tree | 6fbbe3197fbb7f74eaa5786919ced46a06cbf39d /sal | |
parent | 027b25ecd54ac97ea2471ca73e3ba89ce052fe76 (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')
-rw-r--r-- | sal/qa/rtl/alloc/rtl_alloc.cxx | 2 | ||||
-rw-r--r-- | sal/qa/rtl/digest/rtl_digest.cxx | 2 | ||||
-rw-r--r-- | sal/qa/rtl/process/rtl_Process.cxx | 4 | ||||
-rw-r--r-- | sal/rtl/math.cxx | 4 | ||||
-rw-r--r-- | sal/textenc/converter.cxx | 4 | ||||
-rw-r--r-- | sal/textenc/converter.hxx | 4 |
6 files changed, 10 insertions, 10 deletions
diff --git a/sal/qa/rtl/alloc/rtl_alloc.cxx b/sal/qa/rtl/alloc/rtl_alloc.cxx index ed0a9def1dbe..30aadcc94f69 100644 --- a/sal/qa/rtl/alloc/rtl_alloc.cxx +++ b/sal/qa/rtl/alloc/rtl_alloc.cxx @@ -30,7 +30,7 @@ namespace rtl_alloc // small memory check routine, which return false, if there is a problem - bool checkMemory(char* _pMemory, sal_uInt32 _nSize, char _n) + bool checkMemory(const char* _pMemory, sal_uInt32 _nSize, char _n) { bool bOk = true; diff --git a/sal/qa/rtl/digest/rtl_digest.cxx b/sal/qa/rtl/digest/rtl_digest.cxx index 93a2cd6e0c63..b61ce9be3fcd 100644 --- a/sal/qa/rtl/digest/rtl_digest.cxx +++ b/sal/qa/rtl/digest/rtl_digest.cxx @@ -71,7 +71,7 @@ const OString constSampleStringSums[] = }; // Create hex-value string from the digest value to keep the string size minimal -OString createHex(sal_uInt8* pKeyBuffer, sal_uInt32 nKeyLen) +OString createHex(const sal_uInt8* pKeyBuffer, sal_uInt32 nKeyLen) { OStringBuffer aBuffer(nKeyLen * 2 + 1); for (sal_uInt32 i = 0; i < nKeyLen; ++i) diff --git a/sal/qa/rtl/process/rtl_Process.cxx b/sal/qa/rtl/process/rtl_Process.cxx index e4b0465a2455..f671c3d2d133 100644 --- a/sal/qa/rtl/process/rtl_Process.cxx +++ b/sal/qa/rtl/process/rtl_Process.cxx @@ -144,7 +144,7 @@ public: /************************************************************************ * For diagnostics( from sal/test/testuuid.cxx ) ************************************************************************/ -void printUuid( sal_uInt8 *pNode ) +void printUuid( const sal_uInt8 *pNode ) { printf("# UUID is: "); for( sal_Int32 i1 = 0 ; i1 < 4 ; i1++ ) @@ -168,7 +168,7 @@ void printUuid( sal_uInt8 *pNode ) /************************************************************************** * output UUID to a string **************************************************************************/ -void printUuidtoBuffer( sal_uInt8 *pNode, sal_Char * pBuffer ) +void printUuidtoBuffer( const sal_uInt8 *pNode, sal_Char * pBuffer ) { sal_Int8 nPtr = 0; for( sal_Int32 i1 = 0 ; i1 < 16 ; i1++ ) diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx index 7eeeb85b4013..2db259b86917 100644 --- a/sal/rtl/math.cxx +++ b/sal/rtl/math.cxx @@ -86,7 +86,7 @@ struct StringTraits } static void createBuffer(rtl_String ** pBuffer, - sal_Int32 * pCapacity) + const sal_Int32 * pCapacity) { rtl_string_new_WithLength(pBuffer, *pCapacity); } @@ -123,7 +123,7 @@ struct UStringTraits } static void createBuffer(rtl_uString ** pBuffer, - sal_Int32 * pCapacity) + const sal_Int32 * pCapacity) { rtl_uString_new_WithLength(pBuffer, *pCapacity); } 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); } } } |