[PATCH 1/7] warning cleaing binfilter sw3io

Pierre-André Jacquod pjacquod at alumni.ethz.ch
Fri Nov 26 10:17:56 PST 2010


based on
sw_sw3nodes.cxx:: warning: comparison is always false due to limited range of data type
---
 binfilter/bf_sw/source/core/sw3io/sw_sw3nodes.cxx |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

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
-- 
1.7.1


--------------000109070206070406010001--


More information about the LibreOffice mailing list