diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-24 13:02:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-25 08:32:27 +0200 |
commit | 57c5f980835f834f6ea96c6f5ca841b5372aa61d (patch) | |
tree | 7851f29791296a006e936f1f323489b79c11e9b2 /ucbhelper | |
parent | 80a30219c4c553ff22979b73dd97a8869d87e488 (diff) |
loplugin:constmethod in comphelper,ucbhelper
Change-Id: I27a860fbbedd2174c60c199af18cae76e02abc25
Reviewed-on: https://gerrit.libreoffice.org/43759
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucbhelper')
-rw-r--r-- | ucbhelper/source/client/content.cxx | 4 | ||||
-rw-r--r-- | ucbhelper/source/provider/interactionrequest.cxx | 2 | ||||
-rw-r--r-- | ucbhelper/source/provider/resultset.cxx | 10 |
3 files changed, 8 insertions, 8 deletions
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index cf80b313ff2d..8b5591dfcd58 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -174,7 +174,7 @@ public: const OUString& getURL() const; Reference< XContent > getContent(); Reference< XCommandProcessor > getCommandProcessor(); - Reference< XComponentContext > const & getComponentContext() + Reference< XComponentContext > const & getComponentContext() const { assert(m_xCtx.is()); return m_xCtx; } Any executeCommand( const Command& rCommand ); @@ -944,7 +944,7 @@ bool Content::transferContent( const Content& rSourceContent, bool bMajorVersion, const OUString & rVersionComment, OUString* pResultURL, - const OUString & rDocumentId ) + const OUString & rDocumentId ) const { Reference< XUniversalContentBroker > pBroker( UniversalContentBroker::create( m_xImpl->getComponentContext() ) ); diff --git a/ucbhelper/source/provider/interactionrequest.cxx b/ucbhelper/source/provider/interactionrequest.cxx index edb7010aeaad..b95f96df5a5a 100644 --- a/ucbhelper/source/provider/interactionrequest.cxx +++ b/ucbhelper/source/provider/interactionrequest.cxx @@ -784,7 +784,7 @@ void SAL_CALL InteractionAuthFallback::setCode( const OUString& code ) m_aCode = code; } -const OUString& SAL_CALL InteractionAuthFallback::getCode( ) +const OUString& SAL_CALL InteractionAuthFallback::getCode() const { return m_aCode; } diff --git a/ucbhelper/source/provider/resultset.cxx b/ucbhelper/source/provider/resultset.cxx index 522748442c02..780a2dc0fcdb 100644 --- a/ucbhelper/source/provider/resultset.cxx +++ b/ucbhelper/source/provider/resultset.cxx @@ -88,7 +88,7 @@ class PropertySetInfo : private: bool queryProperty( - const OUString& aName, beans::Property& rProp ); + const OUString& aName, beans::Property& rProp ) const; public: PropertySetInfo( @@ -1362,7 +1362,7 @@ void SAL_CALL ResultSet::removeVetoableChangeListener( // Non-interface methods. -void ResultSet::propertyChanged( const beans::PropertyChangeEvent& rEvt ) +void ResultSet::propertyChanged( const beans::PropertyChangeEvent& rEvt ) const { if ( !m_pImpl->m_pPropertyChangeListeners ) return; @@ -1427,14 +1427,14 @@ void ResultSet::rowCountFinal() } -const uno::Sequence< beans::Property >& ResultSet::getProperties() +const uno::Sequence< beans::Property >& ResultSet::getProperties() const { return m_pImpl->m_aProperties; } const uno::Reference< css::ucb::XCommandEnvironment >& -ResultSet::getEnvironment() +ResultSet::getEnvironment() const { return m_pImpl->m_xEnv; } @@ -1537,7 +1537,7 @@ sal_Bool SAL_CALL PropertySetInfo::hasPropertyByName( bool PropertySetInfo::queryProperty( - const OUString& aName, beans::Property& rProp ) + const OUString& aName, beans::Property& rProp ) const { sal_Int32 nCount = m_pProps->getLength(); const beans::Property* pProps = m_pProps->getConstArray(); |