regards
>From 6551d69a5fbc85f3af92cada84bf543a083d4453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Andr=C3=A9=20Jacquod?= <pjacq...@alumni.ethz.ch> Date: Sat, 4 Dec 2010 22:05:10 +0100 Subject: [PATCH 16/16] removing code due to endless loop
these part of code have been removed. The While(true) loop means either that the if statement is never taken, or that the program hangs there. The second case is not safe, the first case means that this code is not needed. --- binfilter/bf_sw/source/core/txtnode/sw_thints.cxx | 23 --------------------- 1 files changed, 0 insertions(+), 23 deletions(-) diff --git a/binfilter/bf_sw/source/core/txtnode/sw_thints.cxx b/binfilter/bf_sw/source/core/txtnode/sw_thints.cxx index 06b91e2..13333ad 100644 --- a/binfilter/bf_sw/source/core/txtnode/sw_thints.cxx +++ b/binfilter/bf_sw/source/core/txtnode/sw_thints.cxx @@ -923,16 +923,6 @@ using namespace ::com::sun::star::i18n; /*N*/ /*N*/ if( pNd == this ) /*N*/ { -/*?*/ if( aThisSet.Count() ) -/*?*/ { -/*?*/ SfxItemIter aIter( aThisSet ); -/*?*/ const SfxPoolItem* pItem = aIter.GetCurItem(); -/*?*/ while( TRUE ) -/*?*/ { - DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ if( lcl_IsNewAttrInSet( *pSwpHints, *pItem, GetTxt().Len() ) ) -/*?*/ } -/*?*/ } -/*N*/ /*N*/ } /*N*/ else /*N*/ { @@ -947,19 +937,6 @@ using namespace ::com::sun::star::i18n; /*N*/ { /*?*/ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 SfxItemIter aIter( aThisSet ); /*N*/ } -/*N*/ -/*N*/ if( aNdSet.Count() ) -/*N*/ { -/*?*/ SfxItemIter aIter( aNdSet ); -/*?*/ const SfxPoolItem* pItem = aIter.GetCurItem(); -/*?*/ while( TRUE ) -/*?*/ { - DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ if( lcl_IsNewAttrInSet( *pNd->pSwpHints, *pItem, pNd->GetTxt().Len() ) ) -/*?*/ } -/*?*/ -/*?*/ SwFmtChg aTmp1( pNd->GetFmtColl() ); -/*?*/ pNd->SwModify::Modify( &aTmp1, &aTmp1 ); -/*N*/ } /*N*/ } /*N*/ /*N*/ if( pNd->pSwpHints->CanBeDeleted() ) -- 1.7.1
_______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice