summaryrefslogtreecommitdiff
path: root/sw/source/core
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-29 10:36:52 +0100
commitb388191cebadb725ad8ff0f052040617c2895627 (patch)
tree4cda3f0b9a329ff5c21be22defc89ffb9e1092f7 /sw/source/core
parent31f17b11c4c9b19f55d4f26c0c8eadef56d4ba62 (diff)
clean up and reduce indent levels
Change-Id: I8cbc62d9d404f4dd4039d43411c53d3cf4a8275f
Diffstat (limited to 'sw/source/core')
-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;
}