From 14d45665433eec974acd96f813f2bf314bdb3eba Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 19 Oct 2017 11:09:13 +0200 Subject: loplugin:constmethod in codemaker,registry,store Change-Id: Ie75875974f054ff79bd64b1c261e79e2b78eb7fc Reviewed-on: https://gerrit.libreoffice.org/43540 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/registry/registry.hxx | 10 +++++----- include/registry/writer.hxx | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'include/registry') 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, -- cgit