[Libreoffice-commits] .: binfilter/bf_sw

Caolán McNamara caolan at kemper.freedesktop.org
Sun Nov 28 06:54:22 PST 2010


 binfilter/bf_sw/source/core/sw3io/sw_sw3nodes.cxx |    5 -----
 1 file changed, 5 deletions(-)

New commits:
commit dd69b2452e71c736fd11cc7be2b27840e4de5a2f
Author: Pierre-André Jacquod <pjacquod at alumni.ethz.ch>
Date:   Sun Nov 28 14:54:02 2010 +0000

    warning: comparison is always false due to limited range of data type

diff --git a/binfilter/bf_sw/source/core/sw3io/sw_sw3nodes.cxx b/binfilter/bf_sw/source/core/sw3io/sw_sw3nodes.cxx
index 20ad31b..c6fdf62 100644
--- a/binfilter/bf_sw/source/core/sw3io/sw_sw3nodes.cxx
+++ b/binfilter/bf_sw/source/core/sw3io/sw_sw3nodes.cxx
@@ -1900,12 +1900,7 @@ SV_DECL_PTRARR( SwTxtAttrs, SwTxtAttrPtr, 5, 5 )//STRIP008 ;
 /*N*/ 		// der Header
 /*N*/ 		cFlags = 0x04;	// 4 Bytes Daten
 /*N*/ 		xub_StrLen nBegin = pWrong->GetBeginInv();
-/*N*/ 		if( nBegin > STRING_MAXLEN52 )
-/*N*/ 			nBegin = STRING_MAXLEN52;
-/*N*/ 
 /*N*/ 		xub_StrLen nEnd = pWrong->GetEndInv();
-/*N*/ 		if( nEnd > STRING_MAXLEN52 )
-/*N*/ 			nEnd = STRING_MAXLEN52;
 /*N*/ 
 /*N*/ 		*pStrm << cFlags
 /*N*/ 			   << (UINT16)nBegin


More information about the Libreoffice-commits mailing list