summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unostyle.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/unocore/unostyle.cxx')
-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;
}