From 57c5f980835f834f6ea96c6f5ca841b5372aa61d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 24 Oct 2017 13:02:58 +0200 Subject: loplugin:constmethod in comphelper,ucbhelper Change-Id: I27a860fbbedd2174c60c199af18cae76e02abc25 Reviewed-on: https://gerrit.libreoffice.org/43759 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/ucbhelper/content.hxx | 2 +- include/ucbhelper/interactionrequest.hxx | 2 +- include/ucbhelper/resultset.hxx | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'include/ucbhelper') diff --git a/include/ucbhelper/content.hxx b/include/ucbhelper/content.hxx index eec9d2d26926..3d48b70915f0 100644 --- a/include/ucbhelper/content.hxx +++ b/include/ucbhelper/content.hxx @@ -663,7 +663,7 @@ public: bool bMajorVersion = false, const OUString & rCommentVersion = OUString( ), OUString* pResultURL = nullptr, - const OUString & rDocumentId = OUString( ) ); + const OUString & rDocumentId = OUString( ) ) const; /** * This method lock the resource. diff --git a/include/ucbhelper/interactionrequest.hxx b/include/ucbhelper/interactionrequest.hxx index 7c2a5f565cad..5481797ff4b5 100644 --- a/include/ucbhelper/interactionrequest.hxx +++ b/include/ucbhelper/interactionrequest.hxx @@ -548,7 +548,7 @@ public: // XAuthFallback virtual void SAL_CALL setCode( const OUString& code ) override; /// @throws css::uno::RuntimeException - const OUString& SAL_CALL getCode(); + const OUString& SAL_CALL getCode() const; }; diff --git a/include/ucbhelper/resultset.hxx b/include/ucbhelper/resultset.hxx index a71afddabb5f..906b7c9af103 100644 --- a/include/ucbhelper/resultset.hxx +++ b/include/ucbhelper/resultset.hxx @@ -259,7 +259,7 @@ public: * @param rEvt is a property change event. */ void propertyChanged( - const css::beans::PropertyChangeEvent& rEvt ); + const css::beans::PropertyChangeEvent& rEvt ) const; /** * This method should be called by the data supplier for the result set @@ -283,7 +283,7 @@ public: * @return a sequence of properties. */ const css::uno::Sequence< css::beans::Property >& - getProperties(); + getProperties() const; /** * This method returns the environment to use for interactions, progress @@ -292,7 +292,7 @@ public: * @return an environment or an empty reference. */ const css::uno::Reference< css::ucb::XCommandEnvironment >& - getEnvironment(); + getEnvironment() const; }; -- cgit v1.2.3