diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-19 11:09:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-20 08:50:48 +0200 |
commit | 14d45665433eec974acd96f813f2bf314bdb3eba (patch) | |
tree | 814e8fc8448754fa32ad447095a4353ab4dfb7d1 /include/registry | |
parent | 8f8a1e301c7f5b9e924e192ab68b7baa23dcc47a (diff) |
loplugin:constmethod in codemaker,registry,store
Change-Id: Ie75875974f054ff79bd64b1c261e79e2b78eb7fc
Reviewed-on: https://gerrit.libreoffice.org/43540
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 | 10 | ||||
-rw-r--r-- | include/registry/writer.hxx | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/registry/registry.hxx b/include/registry/registry.hxx index f8906668e253..36b7d77858d3 100644 --- a/include/registry/registry.hxx +++ b/include/registry/registry.hxx @@ -179,7 +179,7 @@ public: friend class RegistryKeyNames; /// returns the used registry Api. - const Registry_Api* getApi() { return m_pApi; } + const Registry_Api* getApi() const { return m_pApi; } protected: /// stores the used and initialized registry Api. @@ -206,7 +206,7 @@ public: inline RegistryKey getElement(sal_uInt32 index); /// returns the length of the array. - inline sal_uInt32 getLength(); + inline sal_uInt32 getLength() const; friend class RegistryKey; protected: @@ -244,7 +244,7 @@ public: inline rtl::OUString getElement(sal_uInt32 index); /// returns the length of the array. - inline sal_uInt32 getLength(); + inline sal_uInt32 getLength() const; friend class RegistryKey; protected: @@ -591,7 +591,7 @@ inline RegistryKey RegistryKeyArray::getElement(sal_uInt32 index) return RegistryKey(); } -inline sal_uInt32 RegistryKeyArray::getLength() +inline sal_uInt32 RegistryKeyArray::getLength() const { return m_length; } @@ -626,7 +626,7 @@ inline rtl::OUString RegistryKeyNames::getElement(sal_uInt32 index) return rtl::OUString(); } -inline sal_uInt32 RegistryKeyNames::getLength() +inline sal_uInt32 RegistryKeyNames::getLength() const { return m_length; } diff --git a/include/registry/writer.hxx b/include/registry/writer.hxx index dc3ce97c4f0f..7e3bfbd7e9bc 100644 --- a/include/registry/writer.hxx +++ b/include/registry/writer.hxx @@ -194,7 +194,7 @@ public: void setMethodParameterData( sal_uInt16 methodIndex, sal_uInt16 parameterIndex, RTParamMode flags, rtl::OUString const & name, - rtl::OUString const & typeName) + rtl::OUString const & typeName) const { if (!typereg_writer_setMethodParameterData( m_handle, methodIndex, parameterIndex, flags, name.pData, |