diff options
author | Giuseppe Castagno <giuseppe.castagno@acca-esse.eu> | 2015-08-16 11:53:01 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-08-17 07:18:09 +0000 |
commit | aade7198d72bc4ddb18f10729b89f0435e6ca197 (patch) | |
tree | 0bc5ead56b64417d5b2baf0dd798bf1115557c2f /ucb/source | |
parent | 5050704c3b8d9002217f232ed691f6eab70a8661 (diff) |
cppcheck:noExplicitConstructor
Added a constructor and a method there were missing.
The explict keyword was added in 6343754e310a589cb49e2a1da0cd68472571179d
Change-Id: Iaff33eba8581dc201a8e899c7be024e87f8e6b0e
Reviewed-on: https://gerrit.libreoffice.org/17781
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'ucb/source')
-rw-r--r-- | ucb/source/ucp/webdav/ContentProperties.cxx | 11 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/ContentProperties.hxx | 3 |
2 files changed, 13 insertions, 1 deletions
diff --git a/ucb/source/ucp/webdav/ContentProperties.cxx b/ucb/source/ucp/webdav/ContentProperties.cxx index 0d5e0741465b..5069ef99ae75 100644 --- a/ucb/source/ucp/webdav/ContentProperties.cxx +++ b/ucb/source/ucp/webdav/ContentProperties.cxx @@ -591,6 +591,11 @@ CachableContentProperties::CachableContentProperties( addProperties( rProps ); } +CachableContentProperties::CachableContentProperties( + const DAVResource & rResource ) +{ + addProperties( rResource ); +} void CachableContentProperties::addProperties( const ContentProperties & rProps ) @@ -611,7 +616,6 @@ void CachableContentProperties::addProperties( } } - void CachableContentProperties::addProperties( const std::vector< DAVPropertyValue > & rProps ) { @@ -627,4 +631,9 @@ void CachableContentProperties::addProperties( } } +void CachableContentProperties::addProperties( const DAVResource & rResource ) +{ + addProperties( rResource.properties ); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucb/source/ucp/webdav/ContentProperties.hxx b/ucb/source/ucp/webdav/ContentProperties.hxx index daf3f47654eb..7929b396399a 100644 --- a/ucb/source/ucp/webdav/ContentProperties.hxx +++ b/ucb/source/ucp/webdav/ContentProperties.hxx @@ -173,12 +173,15 @@ private: CachableContentProperties( const CachableContentProperties & ); // n.i. public: + explicit CachableContentProperties( const DAVResource& rResource ); explicit CachableContentProperties( const ContentProperties & rProps ); void addProperties( const ContentProperties & rProps ); void addProperties( const std::vector< DAVPropertyValue > & rProps ); + void addProperties( const DAVResource & rResource ); + bool containsAllNames( const com::sun::star::uno::Sequence< com::sun::star::beans::Property >& rProps, |