diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-17 09:34:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-17 10:20:19 +0200 |
commit | 6f3b39499f9c6c88d637b621ef9ec6189d4fb9ff (patch) | |
tree | 848a5c335833cb61b2e6d2a9120ed5d6d354705b /registry/source/reflwrit.cxx | |
parent | dd323b051d54c5e931b2ee9891c463a310a93889 (diff) |
loplugin:constparams in store,registry
Change-Id: I5633203b372a9abd0138a396958c235ea8aaf66d
Reviewed-on: https://gerrit.libreoffice.org/40039
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'registry/source/reflwrit.cxx')
-rw-r--r-- | registry/source/reflwrit.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/registry/source/reflwrit.cxx b/registry/source/reflwrit.cxx index 6432ac4290a4..f80c83f1cfeb 100644 --- a/registry/source/reflwrit.cxx +++ b/registry/source/reflwrit.cxx @@ -1144,10 +1144,10 @@ sal_Bool TYPEREG_CALLTYPE typereg_writer_setFieldData( static void TYPEREG_CALLTYPE setFieldData(TypeWriterImpl hEntry, sal_uInt16 index, - rtl_uString* name, - rtl_uString* typeName, - rtl_uString* doku, - rtl_uString* fileName, + rtl_uString const * name, + rtl_uString const * typeName, + rtl_uString const * doku, + rtl_uString const * fileName, RTFieldAccess access, RTValueType valueType, RTConstValueUnion constValue) @@ -1175,12 +1175,12 @@ sal_Bool TYPEREG_CALLTYPE typereg_writer_setMethodData( } sal_Bool TYPEREG_CALLTYPE typereg_writer_setMethodParameterData( - void * handle, sal_uInt16 methodIndex, sal_uInt16 parameterIndex, + void const * handle, sal_uInt16 methodIndex, sal_uInt16 parameterIndex, RTParamMode flags, rtl_uString const * name, rtl_uString const * typeName) SAL_THROW_EXTERN_C() { try { - static_cast< TypeWriter * >(handle)-> + static_cast< TypeWriter const * >(handle)-> m_methods[methodIndex].m_params[parameterIndex].setData( toByteString(typeName), toByteString(name), flags); } catch (std::bad_alloc &) { @@ -1281,7 +1281,7 @@ sal_Bool TYPEREG_CALLTYPE typereg_writer_setSuperTypeName( } static TypeWriterImpl TYPEREG_CALLTYPE createEntry( - RTTypeClass typeClass, rtl_uString * typeName, rtl_uString * superTypeName, + RTTypeClass typeClass, rtl_uString const * typeName, rtl_uString const * superTypeName, sal_uInt16 fieldCount, sal_uInt16 methodCount, sal_uInt16 referenceCount) { OUString empty; |