[Libreoffice-commits] .: binfilter/bf_sc

Joseph Powers jpowers at kemper.freedesktop.org
Thu Jan 13 20:15:58 PST 2011


 binfilter/bf_sc/source/core/data/sc_column3.cxx                  |   78 +++++-----
 binfilter/bf_sc/source/core/data/sc_document.cxx                 |    4 
 binfilter/bf_sc/source/core/data/sc_table3.cxx                   |   44 ++---
 binfilter/bf_sc/source/filter/xml/sc_XMLExportDatabaseRanges.cxx |   12 -
 4 files changed, 69 insertions(+), 69 deletions(-)

New commits:
commit c56b1bad80bb43dc346c8579ecbd848ee48be67b
Author: Joseph Powers <jpowers27 at cox.net>
Date:   Thu Jan 13 20:15:51 2011 -0800

    Remove warnings & trailing whitespace

diff --git a/binfilter/bf_sc/source/core/data/sc_column3.cxx b/binfilter/bf_sc/source/core/data/sc_column3.cxx
index 66b17ea..caecb9f 100644
--- a/binfilter/bf_sc/source/core/data/sc_column3.cxx
+++ b/binfilter/bf_sc/source/core/data/sc_column3.cxx
@@ -2,7 +2,7 @@
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- * 
+ *
  * Copyright 2000, 2010 Oracle and/or its affiliates.
  *
  * OpenOffice.org - a multi-platform office productivity suite
@@ -47,8 +47,8 @@ extern const ScFormulaCell* pLastFormulaTreeTop;	// in cellform.cxx
 // STATIC DATA -----------------------------------------------------------
 
 /*N*/ BOOL ScColumn::bDoubleAlloc = FALSE;	// fuer Import: Groesse beim Allozieren verdoppeln
-/*N*/ 
-/*N*/ 
+/*N*/
+/*N*/
 /*N*/ void ScColumn::Insert( USHORT nRow, ScBaseCell* pNewCell )
 /*N*/ {
 /*N*/ 	BOOL bIsAppended = FALSE;
@@ -101,7 +101,7 @@ extern const ScFormulaCell* pLastFormulaTreeTop;	// in cellform.cxx
 /*N*/ 				}
 /*N*/ 				else
 /*N*/ 					nLimit += COLUMN_DELTA;
-/*N*/ 
+/*N*/
 /*N*/ 				ColEntry* pNewItems = new ColEntry[nLimit];
 /*N*/ 				if (pItems)
 /*N*/ 				{
@@ -169,7 +169,7 @@ extern const ScFormulaCell* pLastFormulaTreeTop;	// in cellform.cxx
 /*N*/ 		}
 /*N*/ 		else
 /*N*/ 			nLimit += COLUMN_DELTA;
-/*N*/ 
+/*N*/
 /*N*/ 		ColEntry* pNewItems = new ColEntry[nLimit];
 /*N*/ 		if (pItems)
 /*N*/ 		{
@@ -218,24 +218,24 @@ extern const ScFormulaCell* pLastFormulaTreeTop;	// in cellform.cxx
 /*N*/ void ScColumn::DeleteRow( USHORT nStartRow, USHORT nSize )
 /*N*/ {
 /*N*/ 	pAttrArray->DeleteRow( nStartRow, nSize );
-/*N*/ 
+/*N*/
 /*N*/ 	if ( !pItems || !nCount )
 /*N*/ 		return ;
-/*N*/ 
+/*N*/
 /*N*/ 	USHORT nFirstIndex;
 /*N*/ 	Search( nStartRow, nFirstIndex );
 /*N*/ 	if ( nFirstIndex >= nCount )
 /*N*/ 		return ;
-/*N*/ 
+/*N*/
 /*N*/ 	BOOL bOldAutoCalc = pDocument->GetAutoCalc();
 /*N*/ 	pDocument->SetAutoCalc( FALSE );	// Mehrfachberechnungen vermeiden
-/*N*/ 
+/*N*/
 /*N*/ 	BOOL bFound=FALSE;
 /*N*/ 	USHORT nEndRow = nStartRow + nSize - 1;
-/*N*/ 	USHORT nStartIndex;
+/*N*/ 	USHORT nStartIndex( 0 );
 /*N*/ 	USHORT nEndIndex;
 /*N*/ 	USHORT i;
-/*N*/ 
+/*N*/
 /*N*/ 	for ( i = nFirstIndex; i < nCount && pItems[i].nRow <= nEndRow; i++ )
 /*N*/ 	{
 /*N*/ 		if (!bFound)
@@ -244,7 +244,7 @@ extern const ScFormulaCell* pLastFormulaTreeTop;	// in cellform.cxx
 /*N*/ 			bFound = TRUE;
 /*N*/ 		}
 /*N*/ 		nEndIndex = i;
-/*N*/ 
+/*N*/
 /*N*/ 		ScBaseCell* pCell = pItems[i].pCell;
 /*N*/ 		ScBroadcasterList* pBC = pCell->GetBroadcaster();
 /*N*/ 		if (pBC)
@@ -267,7 +267,7 @@ extern const ScFormulaCell* pLastFormulaTreeTop;	// in cellform.cxx
 /*N*/ 	}
 /*N*/ 	else
 /*N*/ 		i = nFirstIndex;
-/*N*/ 
+/*N*/
 /*N*/ 	ScAddress aAdr( nCol, 0, nTab );
 /*N*/     ScHint aHint( SC_HINT_DATACHANGED, aAdr, NULL );    // only areas (ScBaseCell* == NULL)
 /*N*/     ScAddress& rAddress = aHint.GetAddress();
@@ -310,7 +310,7 @@ extern const ScFormulaCell* pLastFormulaTreeTop;	// in cellform.cxx
 /*N*/         }
 /*N*/         pDocument->AreaBroadcastInRange( aRange, aHint );
 /*N*/     }
-/*N*/ 
+/*N*/
 /*N*/ 	pDocument->SetAutoCalc( bOldAutoCalc );
 /*N*/ }
 
@@ -319,9 +319,9 @@ extern const ScFormulaCell* pLastFormulaTreeTop;	// in cellform.cxx
 /*N*/ {
 /*N*/ 	USHORT nDelCount = 0;
 /*N*/ 	ScBaseCell** ppDelCells = new ScBaseCell*[nEndIndex-nStartIndex+1];
-/*N*/ 
+/*N*/
 /*N*/ 	BOOL bSimple = ((nDelFlag & IDF_CONTENTS) == IDF_CONTENTS);
-/*N*/ 
+/*N*/
 /*N*/ 		//	Notiz-Zeichenobjekte
 /*N*/ 	if (nDelFlag & IDF_NOTE)
 /*N*/ 	{
@@ -334,7 +334,7 @@ extern const ScFormulaCell* pLastFormulaTreeTop;	// in cellform.cxx
 /*N*/ 			}
 /*N*/ 		}
 /*N*/ 	}
-/*N*/ 
+/*N*/
 /*N*/ 		//	Broadcaster stehenlassen
 /*N*/ 	if (bSimple)
 /*N*/ 	{
@@ -342,9 +342,9 @@ extern const ScFormulaCell* pLastFormulaTreeTop;	// in cellform.cxx
 /*N*/ 			if (pItems[i].pCell->GetBroadcaster())
 /*N*/ 				bSimple = FALSE;
 /*N*/ 	}
-/*N*/ 
+/*N*/
 /*N*/     ScHint aHint( SC_HINT_DYING, ScAddress( nCol, 0, nTab ), NULL );
-/*N*/ 
+/*N*/
 /*N*/ 	if (bSimple)			// Bereich komplett loeschen
 /*N*/ 	{
 /*N*/ 		ScBaseCell* pOldCell;
@@ -401,7 +401,7 @@ extern const ScFormulaCell* pLastFormulaTreeTop;	// in cellform.cxx
 /*?*/ 				default:
 /*?*/ 					break;
 /*N*/ 			}
-/*N*/ 
+/*N*/
 /*N*/ 			if (bDelete)
 /*N*/ 			{
 /*N*/ 				ScNoteCell* pNoteCell = NULL;
@@ -421,7 +421,7 @@ extern const ScFormulaCell* pLastFormulaTreeTop;	// in cellform.cxx
 /*N*/ 						pNoteCell->SetBroadcaster(pBC);
 /*N*/ 					}
 /*N*/ 				}
-/*N*/ 
+/*N*/
 /*N*/ 				USHORT nOldRow = pItems[j].nRow;
 /*N*/ 				if (pNoteCell)
 /*N*/ 				{
@@ -460,7 +460,7 @@ extern const ScFormulaCell* pLastFormulaTreeTop;	// in cellform.cxx
 /*N*/ 			}
 /*N*/ 		}
 /*N*/ 	}
-/*N*/ 
+/*N*/
 /*N*/ 	// erst Listener abhaengen kann Neuberechnungen sparen
 /*N*/ 	// eventuell werden dabei vorher entstandene NoteCell mitsamt
 /*N*/ 	// ihren Broadcaster deleted!
@@ -486,7 +486,7 @@ extern const ScFormulaCell* pLastFormulaTreeTop;	// in cellform.cxx
 /*?*/ 		pOldCell->ForgetBroadcaster();
 /*?*/ 		pOldCell->Delete();
 /*N*/ 	}
-/*N*/ 
+/*N*/
 /*N*/ 	delete[] ppDelCells;
 /*N*/ }
 
@@ -494,10 +494,10 @@ extern const ScFormulaCell* pLastFormulaTreeTop;	// in cellform.cxx
 /*N*/ void ScColumn::DeleteArea(USHORT nStartRow, USHORT nEndRow, USHORT nDelFlag)
 /*N*/ {
 /*N*/ 	//	FreeAll darf hier nicht gerufen werden wegen Broadcastern
-/*N*/ 
+/*N*/
 /*N*/ 	//	Attribute erst am Ende, damit vorher noch zwischen Zahlen und Datum
 /*N*/ 	//	unterschieden werden kann (#47901#)
-/*N*/ 
+/*N*/
 /*N*/ 	USHORT nContFlag = nDelFlag & IDF_CONTENTS;
 /*N*/ 	if (pItems && nCount && nContFlag)
 /*N*/ 	{
@@ -522,13 +522,13 @@ extern const ScFormulaCell* pLastFormulaTreeTop;	// in cellform.cxx
 /*?*/ 				DeleteRange( nStartIndex, nEndIndex, nContFlag );
 /*N*/ 		}
 /*N*/ 	}
-/*N*/ 
+/*N*/
 /*N*/ 	if ( nDelFlag & IDF_EDITATTR )
 /*N*/ 	{
 /*?*/ 		DBG_ASSERT( nContFlag == 0, "DeleteArea: falsche Flags" );
 DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ 		RemoveEditAttribs( nStartRow, nEndRow );
 /*N*/ 	}
-/*N*/ 
+/*N*/
 /*N*/ 	//	Attribute erst hier
 /*N*/ 	if ((nDelFlag & IDF_ATTRIB) == IDF_ATTRIB) pAttrArray->DeleteArea( nStartRow, nEndRow );
 /*N*/ 	else if ((nDelFlag & IDF_ATTRIB) != 0) pAttrArray->DeleteHardAttr( nStartRow, nEndRow );
@@ -596,13 +596,13 @@ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ 					pNew = pForm->Clone( pDestDoc,
 /*?*/ 				{
 /*?*/ 					//	#48491# ins Undo-Dokument immer nur die Original-Zelle kopieren,
 /*?*/ 					//	aus Formeln keine Value/String-Zellen erzeugen
-/*?*/ 
+/*?*/
 /*?*/ 					USHORT nErr = pForm->GetErrCode();
 /*?*/ 					if ( nErr )
 /*?*/ 					{
 /*?*/ 						//	Fehler werden immer mit "Zahlen" kopiert
 /*?*/ 						//	(Das ist hiermit willkuerlich so festgelegt)
-/*?*/ 
+/*?*/
 /*?*/ 						if ( nFlags & IDF_VALUE )
 /*?*/ 						{
 DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ 							ScFormulaCell* pErrCell = new ScFormulaCell( pDestDoc, rDestPos );
@@ -624,7 +624,7 @@ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ 							ScFormulaCell* pErrCell = new
 /*?*/ 							else
 /*?*/ 								bDoIns = (nFlags & IDF_VALUE)!=0;
 /*?*/ 						}
-/*?*/ 
+/*?*/
 /*?*/ 						if (bDoIns)
 /*?*/ 						{
 /*?*/ 							double nVal = pForm->GetValue();
@@ -650,10 +650,10 @@ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ 							ScFormulaCell* pErrCell = new
 /*?*/ 		default:
 /*?*/ 			break;
 /*N*/ 	}
-/*N*/ 
+/*N*/
 /*N*/ 	if ( !pNew && pSource->GetNotePtr() && ( nFlags & IDF_NOTE ) )
 /*?*/ 		pNew = new ScNoteCell(*pSource->GetNotePtr());
-/*N*/ 
+/*N*/
 /*N*/ 	return pNew;
 /*N*/ }
 
@@ -747,7 +747,7 @@ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ 							ScFormulaCell* pErrCell = new
 /*N*/ 			{	// waehrend ConvertFrom Import gibt es keine gesetzten Formate
 /*N*/ 				cFirstChar = rString.GetChar(0);
 /*N*/ 			}
-/*N*/ 
+/*N*/
 /*N*/ 			if ( cFirstChar == '=' )
 /*N*/ 			{
 /*?*/ 				if ( rString.Len() == 1 )						// = Text
@@ -809,7 +809,7 @@ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ 							ScFormulaCell* pErrCell = new
 /*N*/ 					pNewCell = new ScStringCell( rString );
 /*N*/ 			}
 /*N*/ 		}
-/*N*/ 
+/*N*/
 /*N*/ 		if ( bIsLoading && (!nCount || nRow > pItems[nCount-1].nRow) )
 /*N*/ 		{	// Search einsparen und ohne Umweg ueber Insert, Listener aufbauen
 /*N*/ 			// und Broadcast kommt eh erst nach dem Laden
@@ -836,7 +836,7 @@ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ 							ScFormulaCell* pErrCell = new
 /*?*/ 						pOldCell->ForgetBroadcaster();
 /*?*/ 						pLastFormulaTreeTop = 0;	// Err527 Workaround
 /*?*/ 					}
-/*?*/ 
+/*?*/
 /*?*/ 					if ( pOldCell->GetCellType() == CELLTYPE_FORMULA )
 /*?*/ 					{
 /*?*/ 						pOldCell->EndListeningTo( pDocument );
@@ -865,10 +865,10 @@ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ 							ScFormulaCell* pErrCell = new
 /*N*/ 				Insert(nRow, pNewCell);					// neu eintragen und Broadcast
 /*N*/ 			}
 /*N*/ 		}
-/*N*/ 
+/*N*/
 /*N*/ 		//	hier keine Formate mehr fuer Formeln setzen!
 /*N*/ 		//	(werden bei der Ausgabe abgefragt)
-/*N*/ 
+/*N*/
 /*N*/ 	}
 /*N*/ 	return bNumFmtSet;
 /*N*/ }
@@ -917,7 +917,7 @@ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ 							ScFormulaCell* pErrCell = new
 /*N*/ void ScColumn::SetNote( USHORT nRow, const ScPostIt& rNote)
 /*N*/ {
 /*N*/ 	BOOL bEmpty = !rNote.GetText().Len();
-/*N*/ 
+/*N*/
 /*N*/ 	USHORT nIndex;
 /*N*/ 	if (Search(nRow, nIndex))
 /*N*/ 	{
@@ -1009,7 +1009,7 @@ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ 							ScFormulaCell* pErrCell = new
 /*N*/ 		bHasNote = pItems[nIndex].pCell->GetNote(rNote);
 /*N*/ 	else
 /*?*/ 		rNote.Clear();
-/*N*/ 
+/*N*/
 /*N*/ 	return bHasNote;
 /*N*/ }
 
diff --git a/binfilter/bf_sc/source/core/data/sc_document.cxx b/binfilter/bf_sc/source/core/data/sc_document.cxx
index 694ad44..80f0bb9 100644
--- a/binfilter/bf_sc/source/core/data/sc_document.cxx
+++ b/binfilter/bf_sc/source/core/data/sc_document.cxx
@@ -2,7 +2,7 @@
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- * 
+ *
  * Copyright 2000, 2010 Oracle and/or its affiliates.
  *
  * OpenOffice.org - a multi-platform office productivity suite
@@ -1072,7 +1072,7 @@ DBG_BF_ASSERT(0, "STRIP");
 /*N*/ 									nXw, nYw, 0 );
 /*N*/ 			nXw -= pClipDoc->aClipRange.aEnd.Col();
 /*N*/ 			nYw -= pClipDoc->aClipRange.aEnd.Row();			// only extra value from ExtendMerge
-/*N*/ 			USHORT nDestAddX, nDestAddY;
+/*N*/ 			USHORT nDestAddX(0), nDestAddY(0);
 /*N*/ 			pClipDoc->GetClipArea( nDestAddX, nDestAddY, bIncludeFiltered );
 /*N*/ 			nXw += nDestAddX;
 /*N*/ 			nYw += nDestAddY;								// ClipArea, plus ExtendMerge value
diff --git a/binfilter/bf_sc/source/core/data/sc_table3.cxx b/binfilter/bf_sc/source/core/data/sc_table3.cxx
index 2357715..97ed107 100644
--- a/binfilter/bf_sc/source/core/data/sc_table3.cxx
+++ b/binfilter/bf_sc/source/core/data/sc_table3.cxx
@@ -2,7 +2,7 @@
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- * 
+ *
  * Copyright 2000, 2010 Oracle and/or its affiliates.
  *
  * OpenOffice.org - a multi-platform office productivity suite
@@ -120,16 +120,16 @@ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ 		if ( !IsSortCollatorGlobal() )
 /*N*/ {
 /*N*/ 	if (!rParam.GetEntry(0).bDoQuery)
 /*N*/ 		return TRUE;
-/*N*/ 
+/*N*/
 /*N*/ 	//---------------------------------------------------------------
-/*N*/ 
+/*N*/
 /*N*/ 	const USHORT nFixedBools = 32;
 /*N*/ 	BOOL aBool[nFixedBools];
 /*N*/     BOOL aTest[nFixedBools];
 /*N*/ 	USHORT nEntryCount = rParam.GetEntryCount();
 /*N*/     BOOL* pPasst = ( nEntryCount <= nFixedBools ? &aBool[0] : new BOOL[nEntryCount] );
 /*N*/     BOOL* pTest = ( nEntryCount <= nFixedBools ? &aTest[0] : new BOOL[nEntryCount] );
-/*N*/ 
+/*N*/
 /*N*/ 	short	nPos = -1;
 /*N*/ 	USHORT	i	 = 0;
 /*N*/ 	BOOL	bMatchWholeCell = pDocument->GetDocOptions().IsMatchWholeCell();
@@ -137,17 +137,17 @@ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ 		if ( !IsSortCollatorGlobal() )
 /*N*/ 		ScGlobal::pCollator);
 /*N*/     ::utl::TransliterationWrapper* pTransliteration = (rParam.bCaseSens ?
 /*N*/         ScGlobal::pCaseTransliteration : ScGlobal::pTransliteration);
-/*N*/ 
+/*N*/
 /*N*/ 	while ( (i < nEntryCount) && rParam.GetEntry(i).bDoQuery )
 /*N*/ 	{
 /*N*/ 		ScQueryEntry& rEntry = rParam.GetEntry(i);
 /*N*/         // we can only handle one single direct query
 /*N*/         if ( !pCell || i > 0 )
 /*?*/             pCell = GetCell( rEntry.nField, nRow );
-/*N*/ 
+/*N*/
 /*N*/ 		BOOL bOk = FALSE;
 /*N*/         BOOL bTestEqual = FALSE;
-/*N*/ 
+/*N*/
 /*N*/ 		if ( pSpecial && pSpecial[i] )
 /*N*/ 		{
 /*?*/ 			if (rEntry.nVal == SC_EMPTYFIELDS)
@@ -172,7 +172,7 @@ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ 		if ( !IsSortCollatorGlobal() )
 /*?*/                     default:
 /*?*/                         nCellVal = 0.0;
 /*N*/                 }
-/*N*/ 
+/*N*/
 /*N*/             }
 /*N*/             else
 /*?*/                 nCellVal = GetValue( rEntry.nField, nRow );
@@ -220,7 +220,7 @@ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ 		if ( !IsSortCollatorGlobal() )
 /*N*/             }
 /*N*/             else
 /*?*/                 GetInputString( rEntry.nField, nRow, aCellStr );
-/*N*/ 
+/*N*/
 /*N*/             BOOL bRealRegExp = (rParam.bRegExp && ((rEntry.eOp == SC_EQUAL)
 /*N*/                 || (rEntry.eOp == SC_NOT_EQUAL)));
 /*N*/             BOOL bTestRegExp = (pbTestEqualCondition && rParam.bRegExp
@@ -289,7 +289,7 @@ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ 		if ( !IsSortCollatorGlobal() )
 /*N*/ 				}
 /*N*/ 			}
 /*N*/ 		}
-/*N*/ 
+/*N*/
 /*N*/ 		if (nPos == -1)
 /*N*/ 		{
 /*N*/ 			nPos++;
@@ -312,13 +312,13 @@ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ 		if ( !IsSortCollatorGlobal() )
 /*N*/ 		}
 /*N*/ 		i++;
 /*N*/ 	}
-/*N*/ 
+/*N*/
 /*N*/ 	for ( i=1; (short)i <= nPos; i++ )
 /*N*/     {
 /*?*/ 		pPasst[0] = pPasst[0] || pPasst[i];
 /*?*/         pTest[0] = pTest[0] || pTest[i];
 /*N*/     }
-/*N*/ 
+/*N*/
 /*N*/ 	BOOL bRet = pPasst[0];
 /*N*/ 	if ( pPasst != &aBool[0] )
 /*?*/ 		delete [] pPasst;
@@ -326,7 +326,7 @@ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 /*?*/ 		if ( !IsSortCollatorGlobal() )
 /*N*/         *pbTestEqualCondition = pTest[0];
 /*N*/     if ( pTest != &aTest[0] )
 /*?*/         delete [] pTest;
-/*N*/ 
+/*N*/
 /*N*/ 	return bRet;
 /*N*/ }
 
@@ -347,21 +347,21 @@ return FALSE;
 /*N*/ long ScTable::GetCellCount() const
 /*N*/ {
 /*N*/ 	long nCellCount = 0;
-/*N*/ 
+/*N*/
 /*N*/ 	for ( USHORT nCol=0; nCol<=MAXCOL; nCol++ )
 /*N*/ 		nCellCount += aCol[nCol].GetCellCount();
-/*N*/ 
+/*N*/
 /*N*/ 	return nCellCount;
 /*N*/ }
 
 /*N*/ long ScTable::GetWeightedCount() const
 /*N*/ {
 /*N*/ 	long nCellCount = 0;
-/*N*/ 
+/*N*/
 /*N*/ 	for ( USHORT nCol=0; nCol<=MAXCOL; nCol++ )
 /*N*/ 		if ( aCol[nCol].GetCellCount() )					// GetCellCount ist inline
 /*N*/ 			nCellCount += aCol[nCol].GetWeightedCount();
-/*N*/ 
+/*N*/
 /*N*/ 	return nCellCount;
 /*N*/ }
 
@@ -372,9 +372,9 @@ return FALSE;
 /*N*/ 	//	Cursor neben einer Markierung nicht beruecksichtigen:
 /*N*/ 	//!	nur noch MarkData uebergeben, Cursorposition ggf. hineinselektieren!!!
 /*N*/ 	BOOL bSingle = ( rMark.IsMarked() || !rMark.IsMultiMarked() );
-/*N*/ 
+/*N*/
 /*N*/ 	// Mehrfachselektion:
-/*N*/ 
+/*N*/
 /*N*/ 	USHORT nCol;
 /*N*/ 	if ( rMark.IsMultiMarked() )
 /*N*/ 		for (nCol=0; nCol<=MAXCOL && !rData.bError; nCol++)
@@ -382,9 +382,9 @@ return FALSE;
 /*N*/ 				aCol[nCol].UpdateSelectionFunction( rMark, rData, pRowFlags,
 /*N*/ 													bSingle && ( nCol >= nStartCol && nCol <= nEndCol ),
 /*N*/ 													nStartRow, nEndRow );
-/*N*/ 
+/*N*/
 /*N*/ 	//	Einfachselektion (oder Cursor) nur wenn nicht negativ (und s.o.):
-/*N*/ 
+/*N*/
 /*N*/ 	if ( bSingle && !rMark.IsMarkNegative() )
 /*N*/ 		for (nCol=nStartCol; nCol<=nEndCol && !rData.bError; nCol++)
 /*N*/ 			if ( !pColFlags || !( pColFlags[nCol] & CR_HIDDEN ) )
@@ -393,7 +393,7 @@ return FALSE;
 
 /*N*/ void ScTable::FindConditionalFormat( ULONG nKey, ScRangeList& rList )
 /*N*/ {
-/*N*/ 	USHORT nStartRow, nEndRow;
+/*N*/ 	USHORT nStartRow(0), nEndRow(0);
 /*N*/ 	for (USHORT nCol=0; nCol<=MAXCOL; nCol++)
 /*N*/ 	{
 /*N*/ 		ScAttrIterator* pIter = aCol[nCol].CreateAttrIterator( 0, MAXCOL );
diff --git a/binfilter/bf_sc/source/filter/xml/sc_XMLExportDatabaseRanges.cxx b/binfilter/bf_sc/source/filter/xml/sc_XMLExportDatabaseRanges.cxx
index f573005..288b863 100644
--- a/binfilter/bf_sc/source/filter/xml/sc_XMLExportDatabaseRanges.cxx
+++ b/binfilter/bf_sc/source/filter/xml/sc_XMLExportDatabaseRanges.cxx
@@ -2,7 +2,7 @@
 /*************************************************************************
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- * 
+ *
  * Copyright 2000, 2010 Oracle and/or its affiliates.
  *
  * OpenOffice.org - a multi-platform office productivity suite
@@ -288,7 +288,7 @@ void ScXMLExportDatabaseRanges::WriteFilterDescriptor(const uno::Reference <shee
         uno::Reference <beans::XPropertySet> xPropertySet (xSheetFilterDescriptor, uno::UNO_QUERY);
         if (xPropertySet.is())
         {
-            sal_Bool bCopyOutputData;
+            sal_Bool bCopyOutputData( sal_False );
             uno::Any aCopyOutputData = xPropertySet->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(SC_UNONAME_COPYOUT)));
             if (aCopyOutputData >>= bCopyOutputData)
                 if (bCopyOutputData)
@@ -314,7 +314,7 @@ void ScXMLExportDatabaseRanges::WriteFilterDescriptor(const uno::Reference <shee
                 rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_CONDITION_SOURCE_RANGE_ADDRESS, sOUCellAddress);
             }
 
-            sal_Bool bSkipDuplicates;
+            sal_Bool bSkipDuplicates( sal_False );
             uno::Any aSkipDuplicates = xPropertySet->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(SC_UNONAME_SKIPDUP)));
             if (aSkipDuplicates >>= bSkipDuplicates)
                 if (bSkipDuplicates)
@@ -567,17 +567,17 @@ void ScXMLExportDatabaseRanges::WriteSubTotalDescriptor(const ::com::sun::star::
             sal_Int32 nUserSortListIndex = 0;
             if (xPropertySet.is())
             {
-                sal_Bool bBindFormatsToContent;
+                sal_Bool bBindFormatsToContent( sal_False );
                 uno::Any aBindFormatsToContent = xPropertySet->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(SC_UNONAME_BINDFMT)));
                 if (aBindFormatsToContent >>= bBindFormatsToContent)
                     if (!bBindFormatsToContent)
                         rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_BIND_STYLES_TO_CONTENT, XML_FALSE);
-                sal_Bool bInsertPageBreaks;
+                sal_Bool bInsertPageBreaks( sal_False );
                 uno::Any aInsertPageBreaks = xPropertySet->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(SC_UNONAME_INSBRK)));
                 if (aInsertPageBreaks >>= bInsertPageBreaks)
                     if (bInsertPageBreaks)
                         rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_PAGE_BREAKS_ON_GROUP_CHANGE, XML_TRUE);
-                sal_Bool bIsCaseSensitive;
+                sal_Bool bIsCaseSensitive( sal_False );
                 uno::Any aIsCaseSensitive = xPropertySet->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(SC_UNONAME_ISCASE)));
                 if (aIsCaseSensitive >>= bIsCaseSensitive)
                     if (bIsCaseSensitive)


More information about the Libreoffice-commits mailing list