summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-16 15:23:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-17 08:25:47 +0200
commitccb2a1f650bc505f8a4f1abebf8ce4f9396562a8 (patch)
tree2ee2fd4f300ae95cf23bade1f242e02f9b276c07 /ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx
parentda5c3a1ee43dd1a07cbd1b8005488bf05432593d (diff)
clang-tidy readability-redundant-smartptr-get
redundant get() call on smart pointer Change-Id: Icb5a03bbc15e79a30d3d135a507d22914d15c2bd Reviewed-on: https://gerrit.libreoffice.org/61837 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx')
-rw-r--r--ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx b/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx
index 38b840bcbc15..faf6c742ac3e 100644
--- a/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx
@@ -304,10 +304,9 @@ uno::Sequence< beans::Property > Content::getProperties(
osl::Guard< osl::Mutex > aGuard( m_aMutex );
bTransient = m_bTransient;
- xResAccess.reset( new DAVResourceAccess( *m_xResAccess.get() ) );
- if ( m_xCachedProps.get() )
- xCachedProps.reset(
- new ContentProperties( *m_xCachedProps.get() ) );
+ xResAccess.reset(new DAVResourceAccess(*m_xResAccess));
+ if (m_xCachedProps)
+ xCachedProps.reset(new ContentProperties(*m_xCachedProps));
xProvider.set( m_pProvider );
}
@@ -494,7 +493,7 @@ uno::Sequence< beans::Property > Content::getProperties(
"CreatableContentsInfo" ) );
// Add cached properties, if present and still missing.
- if ( xCachedProps.get() )
+ if (xCachedProps)
{
const std::set< OUString >::const_iterator set_end
= aPropSet.end();