summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-11-28 03:21:22 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-11-28 23:59:17 +0100
commit870a7c8544913ce9e7a8f7824e1c0aa5360c44f2 (patch)
tree81ace3834dda1c17ac7ae60b40413f59955f472f
parent6dc570598e2a0b49184d6cba88a31a28da76d56b (diff)
clean up and reduce indent levels
Change-Id: I8cbc62d9d404f4dd4039d43411c53d3cf4a8275f
-rw-r--r--sw/source/core/unocore/unostyle.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index dae662ef4394..eda26eb8dbc5 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -768,17 +768,15 @@ void SwXStyleFamily::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
}
}
-SwXStyle* SwXStyleFamily::_FindStyle(const OUString& rStyleName)const
+SwXStyle* SwXStyleFamily::_FindStyle(const OUString& rStyleName) const
{
const size_t nLCount = m_pBasePool->GetSizeOfVector();
- for( size_t i = 0; i < nLCount; ++i)
+ for(size_t i = 0; i < nLCount; ++i)
{
- SfxListener* pListener = m_pBasePool->GetListener( i );
- SwXStyle* pTempStyle = dynamic_cast<SwXStyle*>( pListener );
+ SfxListener* pListener = m_pBasePool->GetListener(i);
+ SwXStyle* pTempStyle = dynamic_cast<SwXStyle*>(pListener);
if(pTempStyle && pTempStyle->GetFamily() == m_eFamily && pTempStyle->GetStyleName() == rStyleName)
- {
return pTempStyle;
- }
}
return nullptr;
}