[Libreoffice-commits] core.git: ucb/source
Giuseppe Castagno
giuseppe.castagno at acca-esse.eu
Mon Aug 17 00:18:31 PDT 2015
ucb/source/ucp/webdav/ContentProperties.cxx | 11 ++++++++++-
ucb/source/ucp/webdav/ContentProperties.hxx | 3 +++
2 files changed, 13 insertions(+), 1 deletion(-)
New commits:
commit aade7198d72bc4ddb18f10729b89f0435e6ca197
Author: Giuseppe Castagno <giuseppe.castagno at acca-esse.eu>
Date: Sun Aug 16 11:53:01 2015 +0200
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 at libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/ucb/source/ucp/webdav/ContentProperties.cxx b/ucb/source/ucp/webdav/ContentProperties.cxx
index 0d5e074..5069ef9 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 daf3f47..7929b39 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,
More information about the Libreoffice-commits
mailing list