Kaydet (Commit) 85278715 authored tarafından Matteo Casalin's avatar Matteo Casalin

Reduce scope

Change-Id: Ie73f3d0f67435d66e8cb3bb2edeb9507bc420c85
üst 957ad07e
...@@ -1035,10 +1035,9 @@ void SwXStyleFamily::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) ...@@ -1035,10 +1035,9 @@ 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 = pBasePool->GetListenerCount(); const size_t nLCount = pBasePool->GetListenerCount();
SfxListener* pListener = 0;
for( size_t i = 0; i < nLCount; ++i) for( size_t i = 0; i < nLCount; ++i)
{ {
pListener = pBasePool->GetListener( i ); SfxListener* pListener = pBasePool->GetListener( i );
SwXStyle* pTempStyle = dynamic_cast<SwXStyle*>( pListener ); SwXStyle* pTempStyle = dynamic_cast<SwXStyle*>( pListener );
if(pTempStyle && pTempStyle->GetFamily() == eFamily && pTempStyle->GetStyleName() == rStyleName) if(pTempStyle && pTempStyle->GetFamily() == eFamily && pTempStyle->GetStyleName() == rStyleName)
{ {
......
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