diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-25 16:41:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-27 11:04:46 +0000 |
commit | 7f91e4a982672969c80e6117d09ae816a8dc5f21 (patch) | |
tree | bd190f71219f8afc36a367322b8a2292f2a30949 /opencl | |
parent | d9031bd83ffe718a80da9ecbdbeb485e35fbabee (diff) |
loplugin:stringadd in oox..pyuno
after my patch to merge the bufferadd loplugin into stringadd
Change-Id: I5fdc0a33923fe00e7b588f4576607515a93e5c13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149579
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'opencl')
-rw-r--r-- | opencl/source/openclwrapper.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/opencl/source/openclwrapper.cxx b/opencl/source/openclwrapper.cxx index dd1850976c08..8d840d65c181 100644 --- a/opencl/source/openclwrapper.cxx +++ b/opencl/source/openclwrapper.cxx @@ -77,12 +77,11 @@ OString generateMD5(const void* pData, size_t length) pBuffer, RTL_DIGEST_LENGTH_MD5); SAL_WARN_IF(aError != rtl_Digest_E_None, "opencl", "md5 generation failed"); - OStringBuffer aBuffer; + OStringBuffer aBuffer(length * 2); const char* const pString = "0123456789ABCDEF"; for(sal_uInt8 val : pBuffer) { - aBuffer.append(pString[val/16]); - aBuffer.append(pString[val%16]); + aBuffer.append(OStringChar(pString[val/16]) + OStringChar(pString[val%16])); } return aBuffer.makeStringAndClear(); } |