diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-16 15:23:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-17 08:25:47 +0200 |
commit | ccb2a1f650bc505f8a4f1abebf8ce4f9396562a8 (patch) | |
tree | 2ee2fd4f300ae95cf23bade1f242e02f9b276c07 /ucb/source/ucp/webdav-neon/DAVSessionFactory.cxx | |
parent | da5c3a1ee43dd1a07cbd1b8005488bf05432593d (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/DAVSessionFactory.cxx')
-rw-r--r-- | ucb/source/ucp/webdav-neon/DAVSessionFactory.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ucb/source/ucp/webdav-neon/DAVSessionFactory.cxx b/ucb/source/ucp/webdav-neon/DAVSessionFactory.cxx index 13eda808ee31..060fcb8984d5 100644 --- a/ucb/source/ucp/webdav-neon/DAVSessionFactory.cxx +++ b/ucb/source/ucp/webdav-neon/DAVSessionFactory.cxx @@ -49,7 +49,7 @@ rtl::Reference< DAVSession > DAVSessionFactory::createDAVSession( m_xContext = rxContext; - if ( !m_xProxyDecider.get() ) + if (!m_xProxyDecider) m_xProxyDecider.reset( new ucbhelper::InternetProxyDecider( rxContext ) ); Map::iterator aIt( m_aMap.begin() ); @@ -67,8 +67,8 @@ rtl::Reference< DAVSession > DAVSessionFactory::createDAVSession( { NeonUri aURI( inUri ); - std::unique_ptr< DAVSession > xElement( - new NeonSession( this, inUri, rFlags, *m_xProxyDecider.get() ) ); + std::unique_ptr<DAVSession> xElement( + new NeonSession(this, inUri, rFlags, *m_xProxyDecider)); aIt = m_aMap.emplace( inUri, xElement.get() ).first; aIt->second->m_aContainerIt = aIt; @@ -91,7 +91,7 @@ rtl::Reference< DAVSession > DAVSessionFactory::createDAVSession( // call a little: NeonUri aURI( inUri ); - aIt->second = new NeonSession( this, inUri, rFlags, *m_xProxyDecider.get() ); + aIt->second = new NeonSession(this, inUri, rFlags, *m_xProxyDecider); aIt->second->m_aContainerIt = aIt; return aIt->second; } |