diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-13 08:44:21 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-13 08:44:46 +0200 |
commit | 8bd9eb833444810dec3debd0215bd26dffc2fb91 (patch) | |
tree | 67af5f48ff3b6a83e50ff8980d8b6fad96cc1446 /svl/source/items/style.cxx | |
parent | fa7c7b160136e4b08bc1e1aef9017d4596ad6184 (diff) |
loplugin:unusedmethods unused return value in include/svl
Change-Id: I759fe8769daccea07c2157bfb5912df8ba285534
Diffstat (limited to 'svl/source/items/style.cxx')
-rw-r--r-- | svl/source/items/style.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx index a10cc04a7d66..211c72d0d3bf 100644 --- a/svl/source/items/style.cxx +++ b/svl/source/items/style.cxx @@ -676,7 +676,7 @@ SfxStyleSheetBase& SfxStyleSheetBasePool::Make( const OUString& rName, SfxStyleF * Helper function: If a template with this name exists it is created * anew. All templates that have this template as a parent are reconnected. */ -SfxStyleSheetBase& SfxStyleSheetBasePool::Add( const SfxStyleSheetBase& rSheet ) +void SfxStyleSheetBasePool::Add( const SfxStyleSheetBase& rSheet ) { SfxStyleSheetIterator aIter(this, rSheet.GetFamily(), nMask); SfxStyleSheetBase* pOld = aIter.Find( rSheet.GetName() ); @@ -686,7 +686,6 @@ SfxStyleSheetBase& SfxStyleSheetBasePool::Add( const SfxStyleSheetBase& rSheet ) rtl::Reference< SfxStyleSheetBase > xNew( Create( rSheet ) ); pImp->mxIndexedStyleSheets->AddStyleSheet(xNew); Broadcast( SfxStyleSheetHint( SfxStyleSheetHintId::CHANGED, *xNew.get() ) ); - return *xNew.get(); } SfxStyleSheetBasePool& SfxStyleSheetBasePool::operator=( const SfxStyleSheetBasePool& r ) |