diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-28 10:31:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-28 11:30:49 +0200 |
commit | 08519ce8265b9b785f369623e1d6ad396c36d349 (patch) | |
tree | b6c63ed7da7f02d3a04a753d3ff8f44dce44b2f7 | |
parent | 6c6c1eea82b259c7aec1e0ed5ff86bfd2eb0243f (diff) |
loplugin:constmethod in ucb..uui
Change-Id: I53db381de8e063b6a3aa07051351e655c6f040fa
Reviewed-on: https://gerrit.libreoffice.org/79782
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | ucb/source/cacher/cachedcontentresultset.cxx | 4 | ||||
-rw-r--r-- | ucb/source/cacher/cachedcontentresultset.hxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/file/filinpstr.hxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/file/filrset.hxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/file/filstr.hxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/file/filtask.hxx | 6 | ||||
-rw-r--r-- | ucb/source/ucp/ftp/ftpdirp.hxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/NeonSession.hxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/PropfindCache.hxx | 2 | ||||
-rw-r--r-- | unoxml/source/dom/documentbuilder.hxx | 2 | ||||
-rw-r--r-- | unoxml/source/rdf/librdf_repository.cxx | 2 | ||||
-rw-r--r-- | uui/source/iahndl.cxx | 2 | ||||
-rw-r--r-- | uui/source/iahndl.hxx | 4 |
14 files changed, 19 insertions, 19 deletions
diff --git a/ucb/source/cacher/cachedcontentresultset.cxx b/ucb/source/cacher/cachedcontentresultset.cxx index 15f35adcfea1..2cccf730066b 100644 --- a/ucb/source/cacher/cachedcontentresultset.cxx +++ b/ucb/source/cacher/cachedcontentresultset.cxx @@ -162,7 +162,7 @@ bool CachedContentResultSet::CCRS_Cache } sal_Int32 CachedContentResultSet::CCRS_Cache - ::getMaxRow() + ::getMaxRow() const { if( !m_pResult ) return 0; @@ -174,7 +174,7 @@ sal_Int32 CachedContentResultSet::CCRS_Cache } bool CachedContentResultSet::CCRS_Cache - ::hasKnownLast() + ::hasKnownLast() const { if( !m_pResult ) return false; diff --git a/ucb/source/cacher/cachedcontentresultset.hxx b/ucb/source/cacher/cachedcontentresultset.hxx index 174fb91ff568..e6febb183b6a 100644 --- a/ucb/source/cacher/cachedcontentresultset.hxx +++ b/ucb/source/cacher/cachedcontentresultset.hxx @@ -87,10 +87,10 @@ class CachedContentResultSet hasCausedException( sal_Int32 nRow ); sal_Int32 - getMaxRow(); + getMaxRow() const; bool - hasKnownLast(); + hasKnownLast() const; /// @throws css::sdbc::SQLException /// @throws css::uno::RuntimeException diff --git a/ucb/source/ucp/file/filinpstr.hxx b/ucb/source/ucp/file/filinpstr.hxx index fffa47f62317..1818e52b8f93 100644 --- a/ucb/source/ucp/file/filinpstr.hxx +++ b/ucb/source/ucp/file/filinpstr.hxx @@ -47,7 +47,7 @@ namespace fileaccess { */ sal_Int32 CtorSuccess() { return m_nErrorCode;} - sal_Int32 getMinorError() { return m_nMinorErrorCode;} + sal_Int32 getMinorError() const { return m_nMinorErrorCode;} virtual sal_Int32 SAL_CALL readBytes( diff --git a/ucb/source/ucp/file/filrset.hxx b/ucb/source/ucp/file/filrset.hxx index 82c1db908fd2..d9995386714b 100644 --- a/ucb/source/ucp/file/filrset.hxx +++ b/ucb/source/ucp/file/filrset.hxx @@ -60,7 +60,7 @@ class XResultSet_impl : virtual ~XResultSet_impl() override; sal_Int32 CtorSuccess() { return m_nErrorCode;} - sal_Int32 getMinorError() { return m_nMinorErrorCode;} + sal_Int32 getMinorError() const { return m_nMinorErrorCode;} // XEventListener virtual void SAL_CALL diff --git a/ucb/source/ucp/file/filstr.hxx b/ucb/source/ucp/file/filstr.hxx index adad07239928..f2f617428af5 100644 --- a/ucb/source/ucp/file/filstr.hxx +++ b/ucb/source/ucp/file/filstr.hxx @@ -56,7 +56,7 @@ class XStream_impl : public cppu::WeakImplHelper< */ sal_Int32 CtorSuccess() { return m_nErrorCode;} - sal_Int32 getMinorError() { return m_nMinorErrorCode;} + sal_Int32 getMinorError() const { return m_nMinorErrorCode;} virtual ~XStream_impl() override; diff --git a/ucb/source/ucp/file/filtask.hxx b/ucb/source/ucp/file/filtask.hxx index c57ed1978c8a..d3bc3041ec99 100644 --- a/ucb/source/ucp/file/filtask.hxx +++ b/ucb/source/ucp/file/filtask.hxx @@ -128,12 +128,12 @@ namespace fileaccess m_nMinorCode = nMinorCode; } - sal_Int32 getInstalledError() + sal_Int32 getInstalledError() const { return m_nErrorCode; } - sal_Int32 getMinorErrorCode() + sal_Int32 getMinorErrorCode() const { return m_nMinorCode; } @@ -148,7 +148,7 @@ namespace fileaccess } const css::uno::Reference< css::ucb::XCommandEnvironment >& - getCommandEnvironment() + getCommandEnvironment() const { return m_xCommandEnvironment; } diff --git a/ucb/source/ucp/ftp/ftpdirp.hxx b/ucb/source/ucp/ftp/ftpdirp.hxx index 983fab1d29ae..39a13e504a40 100644 --- a/ucb/source/ucp/ftp/ftpdirp.hxx +++ b/ucb/source/ucp/ftp/ftpdirp.hxx @@ -53,7 +53,7 @@ namespace ftp { void SetSec(sal_uInt16 seconds) { Seconds = seconds; } void SetNanoSec(sal_uInt32 nanoSec) { NanoSeconds = nanoSec; } - sal_uInt16 GetMonth() { return Month; } + sal_uInt16 GetMonth() const { return Month; } }; diff --git a/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx b/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx index 8aeaf9be2a77..8880bf9ab8b3 100644 --- a/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx +++ b/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx @@ -67,7 +67,7 @@ public: const ::uno::Sequence< css::beans::NamedValue >& rFlags, const ::uno::Reference< ::uno::XComponentContext >& rxContext ); - const ::uno::Reference< ::uno::XComponentContext >& getComponentContext() { return m_xContext; } + const ::uno::Reference< ::uno::XComponentContext >& getComponentContext() const { return m_xContext; } private: typedef std::map< OUString, DAVSession * > Map; diff --git a/ucb/source/ucp/webdav-neon/NeonSession.hxx b/ucb/source/ucp/webdav-neon/NeonSession.hxx index df4522da6e18..061d97eda30c 100644 --- a/ucb/source/ucp/webdav-neon/NeonSession.hxx +++ b/ucb/source/ucp/webdav-neon/NeonSession.hxx @@ -198,7 +198,7 @@ public: const OUString & getHostName() const { return m_aHostName; } - ::uno::Reference< ::uno::XComponentContext > const & getComponentContext() + ::uno::Reference< ::uno::XComponentContext > const & getComponentContext() const { return m_xFactory->getComponentContext(); } const void * getRequestData() const { return m_pRequestData; } diff --git a/ucb/source/ucp/webdav-neon/PropfindCache.hxx b/ucb/source/ucp/webdav-neon/PropfindCache.hxx index d6cb13df6935..f78e4d361d52 100644 --- a/ucb/source/ucp/webdav-neon/PropfindCache.hxx +++ b/ucb/source/ucp/webdav-neon/PropfindCache.hxx @@ -48,7 +48,7 @@ namespace webdav_ucp OUString& getURL() { return m_sURL; }; - const std::vector< DAVResourceInfo >& getPropertiesNames() { return m_aPropertiesNames; }; + const std::vector< DAVResourceInfo >& getPropertiesNames() const { return m_aPropertiesNames; }; void setPropertiesNames( const std::vector< DAVResourceInfo >& aPropertiesNames ) { m_aPropertiesNames = aPropertiesNames; }; }; diff --git a/unoxml/source/dom/documentbuilder.hxx b/unoxml/source/dom/documentbuilder.hxx index ca5927161ceb..b8ce66e42a9e 100644 --- a/unoxml/source/dom/documentbuilder.hxx +++ b/unoxml/source/dom/documentbuilder.hxx @@ -127,7 +127,7 @@ namespace DOM the XML document to be parsed. */ - const css::uno::Reference< css::xml::sax::XErrorHandler >& getErrorHandler() + const css::uno::Reference< css::xml::sax::XErrorHandler >& getErrorHandler() const { return m_xErrorHandler; } diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx index 72e417cfd699..5e679b7cf378 100644 --- a/unoxml/source/rdf/librdf_repository.cxx +++ b/unoxml/source/rdf/librdf_repository.cxx @@ -377,7 +377,7 @@ public: // throw (uno::RuntimeException, lang::IllegalArgumentException, // container::NoSuchElementException, rdf::RepositoryException); - const librdf_TypeConverter& getTypeConverter() { return m_TypeConverter; }; + const librdf_TypeConverter& getTypeConverter() const { return m_TypeConverter; }; private: diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx index 7f31daafd5c2..cd26da12de5d 100644 --- a/uui/source/iahndl.cxx +++ b/uui/source/iahndl.cxx @@ -946,7 +946,7 @@ UUIInteractionHelper::getParentXWindow() const } uno::Reference< task::XInteractionHandler2 > -UUIInteractionHelper::getInteractionHandler() +UUIInteractionHelper::getInteractionHandler() const { return InteractionHandler::createWithParentAndContext( m_xContext, m_xWindowParam, diff --git a/uui/source/iahndl.hxx b/uui/source/iahndl.hxx index f2c9461f6bbe..db39affb659a 100644 --- a/uui/source/iahndl.hxx +++ b/uui/source/iahndl.hxx @@ -90,7 +90,7 @@ public: css::uno::Reference< css::uno::XComponentContext > const & rxContext); css::uno::Reference<css::awt::XWindow> GetParentWindow() const { return m_xWindowParam; } - void SetParentWindow(css::uno::Reference<css::awt::XWindow>& rWindow) { m_xWindowParam = rWindow; } + void SetParentWindow(const css::uno::Reference<css::awt::XWindow>& rWindow) { m_xWindowParam = rWindow; } ~UUIInteractionHelper(); @@ -129,7 +129,7 @@ private: getParentXWindow() const; css::uno::Reference< css::task::XInteractionHandler2 > - getInteractionHandler(); + getInteractionHandler() const; bool handleTypedHandlerImplementations( css::uno::Reference< css::task::XInteractionRequest > const & rRequest |