diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-18 09:57:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-18 11:13:05 +0200 |
commit | c932e26138d9dda1d3dad5e2472a79d42c0a816c (patch) | |
tree | 28652c256477174a536094bf398e65dc1d0ad045 /ucb | |
parent | e530689ef6ba79a26162670580ba28f9b09eb689 (diff) |
loplugin:constparams in toolkit,ucb,xmlhelp
Change-Id: I2287bf468aae5008e25aa8b1bc0b63cff7bb1bf1
Reviewed-on: https://gerrit.libreoffice.org/40117
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/hierarchy/hierarchydata.cxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/hierarchy/hierarchydata.hxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_content.cxx | 6 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_content.hxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_storage.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_storage.hxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/DAVSessionFactory.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx | 2 |
8 files changed, 13 insertions, 13 deletions
diff --git a/ucb/source/ucp/hierarchy/hierarchydata.cxx b/ucb/source/ucp/hierarchy/hierarchydata.cxx index 7730248132b0..b9ce98c567d2 100644 --- a/ucb/source/ucp/hierarchy/hierarchydata.cxx +++ b/ucb/source/ucp/hierarchy/hierarchydata.cxx @@ -868,7 +868,7 @@ bool HierarchyEntry::remove() } -bool HierarchyEntry::first( iterator& it ) +bool HierarchyEntry::first( iterator const & it ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -938,7 +938,7 @@ bool HierarchyEntry::first( iterator& it ) } -bool HierarchyEntry::next( iterator& it ) +bool HierarchyEntry::next( iterator const & it ) { osl::Guard< osl::Mutex > aGuard( m_aMutex ); diff --git a/ucb/source/ucp/hierarchy/hierarchydata.hxx b/ucb/source/ucp/hierarchy/hierarchydata.hxx index 08639f3d9810..324d016ad352 100644 --- a/ucb/source/ucp/hierarchy/hierarchydata.hxx +++ b/ucb/source/ucp/hierarchy/hierarchydata.hxx @@ -126,8 +126,8 @@ public: const HierarchyEntryData& operator*() const; }; - bool first( iterator& it ); - bool next ( iterator& it ); + bool first( iterator const & it ); + bool next ( iterator const & it ); }; } // namespace hierarchy_ucp diff --git a/ucb/source/ucp/tdoc/tdoc_content.cxx b/ucb/source/ucp/tdoc/tdoc_content.cxx index 564f998f0377..5ee0acf192a1 100644 --- a/ucb/source/ucp/tdoc/tdoc_content.cxx +++ b/ucb/source/ucp/tdoc/tdoc_content.cxx @@ -2165,7 +2165,7 @@ void Content::transfer( //static -bool Content::hasData( ContentProvider* pProvider, const Uri & rUri ) +bool Content::hasData( ContentProvider const * pProvider, const Uri & rUri ) { if ( rUri.isRoot() ) { @@ -2201,7 +2201,7 @@ bool Content::hasData( ContentProvider* pProvider, const Uri & rUri ) //static -bool Content::loadData( ContentProvider* pProvider, +bool Content::loadData( ContentProvider const * pProvider, const Uri & rUri, ContentProperties& rProps ) { @@ -2759,7 +2759,7 @@ uno::Reference< io::XInputStream > Content::getInputStream( /// @throws uno::RuntimeException static uno::Reference< io::XOutputStream > lcl_getTruncatedOutputStream( const OUString & rUri, - ContentProvider * pProvider, + ContentProvider const * pProvider, const uno::Reference< ucb::XCommandEnvironment > & xEnv ) { OUString aPassword; diff --git a/ucb/source/ucp/tdoc/tdoc_content.hxx b/ucb/source/ucp/tdoc/tdoc_content.hxx index d17f189a6895..baa47bb37fba 100644 --- a/ucb/source/ucp/tdoc/tdoc_content.hxx +++ b/ucb/source/ucp/tdoc/tdoc_content.hxx @@ -112,10 +112,10 @@ private: getCommands( const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) override; virtual OUString getParentURL() override; - static bool hasData( ContentProvider* pProvider, const Uri & rUri ); + static bool hasData( ContentProvider const * pProvider, const Uri & rUri ); bool hasData( const Uri & rUri ) { return hasData( m_pProvider, rUri ); } - static bool loadData( ContentProvider* pProvider, + static bool loadData( ContentProvider const * pProvider, const Uri & rUri, ContentProperties& rProps ); /// @throws css::ucb::CommandFailedException diff --git a/ucb/source/ucp/tdoc/tdoc_storage.cxx b/ucb/source/ucp/tdoc/tdoc_storage.cxx index f21c656795d2..2ffe2711e8b3 100644 --- a/ucb/source/ucp/tdoc/tdoc_storage.cxx +++ b/ucb/source/ucp/tdoc/tdoc_storage.cxx @@ -321,7 +321,7 @@ StorageElementFactory::createStream( const OUString & rUri, } -void StorageElementFactory::releaseElement( Storage * pElement ) +void StorageElementFactory::releaseElement( Storage const * pElement ) { OSL_ASSERT( pElement ); osl::MutexGuard aGuard( m_aMutex ); diff --git a/ucb/source/ucp/tdoc/tdoc_storage.hxx b/ucb/source/ucp/tdoc/tdoc_storage.hxx index 15e315ee4d18..6a22421a9df7 100644 --- a/ucb/source/ucp/tdoc/tdoc_storage.hxx +++ b/ucb/source/ucp/tdoc/tdoc_storage.hxx @@ -96,7 +96,7 @@ namespace tdoc_ucp { private: friend class Storage; - void releaseElement( Storage * pElement ); + void releaseElement( Storage const * pElement ); /// @throws css::embed::InvalidStorageException /// @throws css::lang::IllegalArgumentException diff --git a/ucb/source/ucp/webdav-neon/DAVSessionFactory.cxx b/ucb/source/ucp/webdav-neon/DAVSessionFactory.cxx index eb001870c1f7..1966eee522d2 100644 --- a/ucb/source/ucp/webdav-neon/DAVSessionFactory.cxx +++ b/ucb/source/ucp/webdav-neon/DAVSessionFactory.cxx @@ -97,7 +97,7 @@ rtl::Reference< DAVSession > DAVSessionFactory::createDAVSession( } } -void DAVSessionFactory::releaseElement( DAVSession * pElement ) +void DAVSessionFactory::releaseElement( DAVSession const * pElement ) { OSL_ASSERT( pElement ); osl::MutexGuard aGuard( m_aMutex ); diff --git a/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx b/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx index 7fa3b095974e..8aeaf9be2a77 100644 --- a/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx +++ b/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx @@ -77,7 +77,7 @@ private: ::uno::Reference< ::uno::XComponentContext > m_xContext; - void releaseElement( DAVSession * pElement ); + void releaseElement( DAVSession const * pElement ); friend class DAVSession; }; |