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 /svl | |
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 'svl')
-rw-r--r-- | svl/source/items/style.cxx | 8 | ||||
-rw-r--r-- | svl/source/items/stylepool.cxx | 3 |
2 files changed, 5 insertions, 6 deletions
diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx index acfa74f8e910..3d403dfa0326 100644 --- a/svl/source/items/style.cxx +++ b/svl/source/items/style.cxx @@ -650,9 +650,9 @@ SfxStyleSheetBase& SfxStyleSheetBasePool::Make( const OUString& rName, SfxStyleF { xStyle = Create( rName, eFam, mask ); StoreStyleSheet(xStyle); - Broadcast( SfxStyleSheetHint( SfxHintId::StyleSheetCreated, *xStyle.get() ) ); + Broadcast(SfxStyleSheetHint(SfxHintId::StyleSheetCreated, *xStyle)); } - return *xStyle.get(); + return *xStyle; } /** @@ -668,7 +668,7 @@ void SfxStyleSheetBasePool::Add( const SfxStyleSheetBase& rSheet ) } rtl::Reference< SfxStyleSheetBase > xNew( Create( rSheet ) ); pImpl->mxIndexedStyleSheets->AddStyleSheet(xNew); - Broadcast( SfxStyleSheetHint( SfxHintId::StyleSheetChanged, *xNew.get() ) ); + Broadcast(SfxStyleSheetHint(SfxHintId::StyleSheetChanged, *xNew)); } SfxStyleSheetBasePool& SfxStyleSheetBasePool::operator=( const SfxStyleSheetBasePool& r ) @@ -802,7 +802,7 @@ struct StyleSheetDisposerFunctor final : public svl::StyleSheetDisposer catch( css::uno::Exception& ) { } - mPool->Broadcast( SfxStyleSheetHint( SfxHintId::StyleSheetErased, *styleSheet.get() ) ); + mPool->Broadcast(SfxStyleSheetHint(SfxHintId::StyleSheetErased, *styleSheet)); } SfxStyleSheetBasePool* mPool; diff --git a/svl/source/items/stylepool.cxx b/svl/source/items/stylepool.cxx index 9ea2b42f9ff0..47f260865101 100644 --- a/svl/source/items/stylepool.cxx +++ b/svl/source/items/stylepool.cxx @@ -380,8 +380,7 @@ std::shared_ptr<SfxItemSet> StylePoolImpl::insertItemSet( const SfxItemSet& rSet { if( !rSet.GetPool()->IsItemPoolable(pItem->Which() ) ) bNonPoolable = true; - if ( !xFoundIgnorableItems.get() || - (xFoundIgnorableItems->Put( *pItem ) == nullptr ) ) + if (!xFoundIgnorableItems || (xFoundIgnorableItems->Put(*pItem) == nullptr)) { pCurNode = pCurNode->findChildNode( *pItem, false ); } |