summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode/txtedt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/txtnode/txtedt.cxx')
-rw-r--r--sw/source/core/txtnode/txtedt.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx
index d38c2978b751..05ee2e75b40b 100644
--- a/sw/source/core/txtnode/txtedt.cxx
+++ b/sw/source/core/txtnode/txtedt.cxx
@@ -314,7 +314,7 @@ static bool lcl_HaveCommonAttributes( IStyleAccess& rStyleAccess,
{
SfxItemIter aIter( *pSet1 );
const SfxPoolItem* pItem = aIter.GetCurItem();
- while( true )
+ do
{
if ( SfxItemState::SET == rSet2.GetItemState( pItem->Which(), false ) )
{
@@ -323,11 +323,8 @@ static bool lcl_HaveCommonAttributes( IStyleAccess& rStyleAccess,
pNewSet->ClearItem( pItem->Which() );
}
- if( aIter.IsAtEnd() )
- break;
-
pItem = aIter.NextItem();
- }
+ } while (pItem);
}
if ( pNewSet )