[Libreoffice-commits] .: 2 commits - sc/source
Caolán McNamara
caolan at kemper.freedesktop.org
Sun Nov 28 05:04:22 PST 2010
sc/source/filter/xml/XMLExportIterator.cxx | 1 +
sc/source/ui/docshell/dbdocfun.cxx | 3 +--
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 3e78db32533d688bd7b7bcd02e11bee80e16aa55
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Nov 28 12:58:14 2010 +0000
cppcheck: unit member
diff --git a/sc/source/filter/xml/XMLExportIterator.cxx b/sc/source/filter/xml/XMLExportIterator.cxx
index d1594b3..3c93eb0 100644
--- a/sc/source/filter/xml/XMLExportIterator.cxx
+++ b/sc/source/filter/xml/XMLExportIterator.cxx
@@ -614,6 +614,7 @@ void ScMyDetectiveOpContainer::Sort()
ScMyCell::ScMyCell() :
aShapeList(),
aDetectiveObjVec(),
+ fValue(0.0),
nValidationIndex(-1),
pBaseCell(NULL),
bIsAutoStyle( sal_False ),
commit 59e287cd1690c6c3b66fb6bb59a75165f242de17
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Nov 28 12:13:23 2010 +0000
cppcheck: can reduce scope of this variable
diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx
index 032d3b1..e3ef979 100644
--- a/sc/source/ui/docshell/dbdocfun.cxx
+++ b/sc/source/ui/docshell/dbdocfun.cxx
@@ -1043,13 +1043,12 @@ BOOL ScDBDocFunc::DoSubTotals( SCTAB nTab, const ScSubTotalParam& rParam,
ScOutlineTable* pUndoTab = NULL;
ScRangeName* pUndoRange = NULL;
ScDBCollection* pUndoDB = NULL;
- SCTAB nTabCount = 0; // fuer Referenz-Undo
if (bRecord) // alte Daten sichern
{
BOOL bOldFilter = bDo && rParam.bDoSort;
- nTabCount = pDoc->GetTableCount();
+ SCTAB nTabCount = pDoc->GetTableCount();
pUndoDoc = new ScDocument( SCDOCMODE_UNDO );
ScOutlineTable* pTable = pDoc->GetOutlineTable( nTab );
if (pTable)
More information about the Libreoffice-commits
mailing list