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 /include/registry | |
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 'include/registry')
-rw-r--r-- | include/registry/registry.hxx | 12 | ||||
-rw-r--r-- | include/registry/typereg_reader.hxx | 2 | ||||
-rw-r--r-- | include/registry/writer.h | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/include/registry/registry.hxx b/include/registry/registry.hxx index ca282da84bc2..e590c2354dd7 100644 --- a/include/registry/registry.hxx +++ b/include/registry/registry.hxx @@ -216,7 +216,7 @@ protected: @param phKeys points to an array of open keys. @param length specifies the length of the array specified by phKeys. */ - inline void setKeyHandles(Registry& registry, RegKeyHandle* phKeys, sal_uInt32 length); + inline void setKeyHandles(Registry const & registry, RegKeyHandle* phKeys, sal_uInt32 length); /// stores the number of open subkeys, the number of elements. sal_uInt32 m_length; @@ -254,7 +254,7 @@ protected: @param pKeyNames points to an array of key names. @param length specifies the length of the array specified by pKeyNames. */ - inline void setKeyNames(Registry& registry, rtl_uString** pKeyNames, sal_uInt32 length); + inline void setKeyNames(Registry const & registry, rtl_uString** pKeyNames, sal_uInt32 length); /// stores the number of key names, the number of elements. sal_uInt32 m_length; @@ -560,7 +560,7 @@ public: protected: /** sets the internal registry on which this key should work. */ - inline void setRegistry(Registry& registry); + inline void setRegistry(Registry const & registry); /// @endcond @@ -596,7 +596,7 @@ inline sal_uInt32 RegistryKeyArray::getLength() return m_length; } -inline void RegistryKeyArray::setKeyHandles(Registry& registry, +inline void RegistryKeyArray::setKeyHandles(Registry const & registry, RegKeyHandle* phKeys, sal_uInt32 length) { @@ -631,7 +631,7 @@ inline sal_uInt32 RegistryKeyNames::getLength() return m_length; } -inline void RegistryKeyNames::setKeyNames(Registry& registry, +inline void RegistryKeyNames::setKeyNames(Registry const & registry, rtl_uString** pKeyNames, sal_uInt32 length) { @@ -663,7 +663,7 @@ inline RegistryKey::RegistryKey(const RegistryKey& toCopy) } /// @cond INTERNAL -inline void RegistryKey::setRegistry(Registry& registry) +inline void RegistryKey::setRegistry(Registry const & registry) { m_registry = registry; } diff --git a/include/registry/typereg_reader.hxx b/include/registry/typereg_reader.hxx index 64c2261f4e0e..d8639ed28121 100644 --- a/include/registry/typereg_reader.hxx +++ b/include/registry/typereg_reader.hxx @@ -91,7 +91,7 @@ REG_DLLPUBLIC void SAL_CALL typereg_reader_release(void * handle); @since UDK 3.2.0 */ -REG_DLLPUBLIC typereg_Version SAL_CALL typereg_reader_getVersion(void * handle); +REG_DLLPUBLIC typereg_Version SAL_CALL typereg_reader_getVersion(void const * handle); /** Returns the documentation of a type reader. diff --git a/include/registry/writer.h b/include/registry/writer.h index e05b09634ede..56ab9c925bf7 100644 --- a/include/registry/writer.h +++ b/include/registry/writer.h @@ -185,7 +185,7 @@ REG_DLLPUBLIC sal_Bool SAL_CALL typereg_writer_setMethodData( @since UDK 3.2.0 */ REG_DLLPUBLIC sal_Bool SAL_CALL 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(); |