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/qa | |
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/qa')
-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 |
3 files changed, 4 insertions, 4 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++ ) |