[PATCH 6/9] waring cleaning in sw_sw3redln.cxx

Pierre-André Jacquod pjacquod at alumni.ethz.ch
Thu Nov 25 11:18:10 PST 2010


shadowing warning and unused parameters
---
 binfilter/bf_sw/source/core/sw3io/sw_sw3redln.cxx |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/binfilter/bf_sw/source/core/sw3io/sw_sw3redln.cxx b/binfilter/bf_sw/source/core/sw3io/sw_sw3redln.cxx
index b0a286b..e2453f4 100644
--- a/binfilter/bf_sw/source/core/sw3io/sw_sw3redln.cxx
+++ b/binfilter/bf_sw/source/core/sw3io/sw_sw3redln.cxx
@@ -97,8 +97,6 @@ namespace binfilter {
 /*N*/ 	{
 /*N*/ 		OpenRec( SWG_REDLINEDATA_LCL );
 /*N*/ 
-/*N*/ 		BYTE cDFlags = OpenFlagRec();
-/*N*/ 
 /*N*/ 		BYTE cType;
 /*N*/ 		UINT16 nStrIdx;
 /*N*/ 
@@ -106,10 +104,10 @@ namespace binfilter {
 /*N*/ 				>> nStrIdx;
 /*N*/ 		CloseFlagRec();
 /*N*/ 
-/*N*/ 		UINT32 nDate, nTime;
+/*N*/ 		UINT32 nDate2, nTime2;
 /*N*/ 		String aComment;
-/*N*/ 		*pStrm 	>> nDate
-/*N*/ 				>> nTime;
+/*N*/ 		*pStrm 	>> nDate2
+/*N*/ 				>> nTime2;
 /*N*/ 		InString( *pStrm, aComment );
 /*N*/ 
 /*N*/ 		// Das oberste Element des Stack wurde als letztes geschrieben.
@@ -120,7 +118,7 @@ namespace binfilter {
 /*N*/ 			nAuthorIdx = pDoc->GetRedlineAuthor();
 /*N*/ 
 /*N*/ 		pData =	new SwRedlineData( (SwRedlineType)cType, nAuthorIdx,
-/*N*/ 								   DateTime( nDate, nTime ), aComment,
+/*N*/ 								   DateTime( nDate2, nTime2 ), aComment,
 /*N*/ 								   pData );
 /*N*/ 
 /*N*/ 		CloseRec( SWG_REDLINEDATA_LCL );
@@ -128,7 +126,6 @@ namespace binfilter {
 /*N*/ 
 /*N*/ 	// Der PaM ist erstmal egal und wird erst spaeter gesetzt
 /*N*/ 	SwPosition aDummyPos( pDoc->GetNodes().GetEndOfExtras() );
-/*N*/ 	BOOL bVisible = (cFlags & 0x10) != 0;
 /*N*/ 	SwRedline *pRedline =
 /*N*/ 		new SwRedline( pData, aDummyPos, (cFlags & 0x10) != 0,
 /*N*/ 					   (cFlags & 0x20) != 0, (cFlags & 0x40) != 0 );
-- 
1.7.1


--------------060203070303090409000905--


More information about the LibreOffice mailing list