diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-01 13:01:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-01 20:58:11 +0200 |
commit | 581efdec36787dc5e378e54d13e7328fddcf3a50 (patch) | |
tree | 29f04e719f8402028a4e26088a8ea825ebe9fdca /ucb/source/ucp/file | |
parent | e512b53ef8ae7945131876d32121fdbbdeb1de35 (diff) |
loplugin:constmethod
Change-Id: I3ed657c5c5e6840e38e3c8505505b4b372125df0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122910
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/ucp/file')
-rw-r--r-- | ucb/source/ucp/file/filinpstr.hxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/file/filrow.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/file/filrow.hxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/file/filrset.hxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/file/filstr.hxx | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/ucb/source/ucp/file/filinpstr.hxx b/ucb/source/ucp/file/filinpstr.hxx index 98ec32b755d0..971872fdbb7f 100644 --- a/ucb/source/ucp/file/filinpstr.hxx +++ b/ucb/source/ucp/file/filinpstr.hxx @@ -42,7 +42,7 @@ namespace fileaccess { * Returns an error code as given by filerror.hxx */ - sal_Int32 CtorSuccess() { return m_nErrorCode;} + sal_Int32 CtorSuccess() const { return m_nErrorCode;} sal_Int32 getMinorError() const { return m_nMinorErrorCode;} virtual sal_Int32 SAL_CALL diff --git a/ucb/source/ucp/file/filrow.cxx b/ucb/source/ucp/file/filrow.cxx index e5957d5afee3..8da0b4d52b94 100644 --- a/ucb/source/ucp/file/filrow.cxx +++ b/ucb/source/ucp/file/filrow.cxx @@ -276,7 +276,7 @@ XRow_impl::getArray( } bool -XRow_impl::isIndexOutOfBounds(sal_Int32 nIndex) +XRow_impl::isIndexOutOfBounds(sal_Int32 nIndex) const { return nIndex < 1 || m_aValueMap.getLength() < nIndex; } diff --git a/ucb/source/ucp/file/filrow.hxx b/ucb/source/ucp/file/filrow.hxx index dbaf7c837787..1a33565a6aa1 100644 --- a/ucb/source/ucp/file/filrow.hxx +++ b/ucb/source/ucp/file/filrow.hxx @@ -104,7 +104,7 @@ namespace fileaccess { TaskManager* m_pMyShell; css::uno::Reference< css::script::XTypeConverter > m_xTypeConverter; - bool isIndexOutOfBounds( sal_Int32 nIndex ); + bool isIndexOutOfBounds( sal_Int32 nIndex ) const; template<typename T> T getValue(sal_Int32 columnIndex); }; diff --git a/ucb/source/ucp/file/filrset.hxx b/ucb/source/ucp/file/filrset.hxx index 4961ce7250bf..07fa1343faf7 100644 --- a/ucb/source/ucp/file/filrset.hxx +++ b/ucb/source/ucp/file/filrset.hxx @@ -56,7 +56,7 @@ class XResultSet_impl : virtual ~XResultSet_impl() override; - sal_Int32 CtorSuccess() { return m_nErrorCode;} + sal_Int32 CtorSuccess() const { return m_nErrorCode;} sal_Int32 getMinorError() const { return m_nMinorErrorCode;} // XEventListener diff --git a/ucb/source/ucp/file/filstr.hxx b/ucb/source/ucp/file/filstr.hxx index e448f17052ab..ad6c39964448 100644 --- a/ucb/source/ucp/file/filstr.hxx +++ b/ucb/source/ucp/file/filstr.hxx @@ -52,7 +52,7 @@ class XStream_impl : public cppu::WeakImplHelper< * Returns an error code as given by filerror.hxx */ - sal_Int32 CtorSuccess() { return m_nErrorCode;} + sal_Int32 CtorSuccess() const { return m_nErrorCode;} sal_Int32 getMinorError() const { return m_nMinorErrorCode;} virtual ~XStream_impl() override; |