regards
From 6551d69a5fbc85f3af92cada84bf543a083d4453 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pierre-Andr=C3=A9=20Jacquod?= <pjacquod@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
Context
- [Libreoffice] [PATCH 02/16] warning fix unused variable in binfilter bf_sw bastyp (continued)
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.