Kaydet (Commit) b388191c authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

clean up and reduce indent levels

Change-Id: I8cbc62d9d404f4dd4039d43411c53d3cf4a8275f
üst 31f17b11
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment