[Libreoffice-commits] .: binfilter/bf_sw
Joseph Powers
jpowers at kemper.freedesktop.org
Mon Nov 29 20:20:54 PST 2010
binfilter/bf_sw/source/core/doc/sw_swtable.cxx | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
New commits:
commit a33d28aa4b96a88fbf2c58d36c5e63878a43c4ff
Author: Joseph Powers <jpowers27 at cox.net>
Date: Mon Nov 29 20:20:48 2010 -0800
cppcheck: variable not read
diff --git a/binfilter/bf_sw/source/core/doc/sw_swtable.cxx b/binfilter/bf_sw/source/core/doc/sw_swtable.cxx
index 58aad93..f62981b 100644
--- a/binfilter/bf_sw/source/core/doc/sw_swtable.cxx
+++ b/binfilter/bf_sw/source/core/doc/sw_swtable.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
@@ -588,7 +588,7 @@ namespace binfilter {
/*N*/ pImpl( 0 ),
/*N*/ pSttNd( &rSttNd )
/*N*/ {
-/*N*/ SwDoc* pDoc = pFmt->GetDoc();
+/*N*/ pFmt->GetDoc();
/*N*/ CheckBoxFmt( pFmt )->Add( this );
/*N*/
/*N*/ // an der Table eintragen
@@ -864,14 +864,12 @@ namespace binfilter {
/*N*/ {
/*N*/ if( !IsModifyLocked() && !IsInDocDTOR() )
/*N*/ {
-/*N*/ const SwTblBoxNumFormat *pNewFmt = 0, *pOldFmt = 0;
-/*N*/ const SwTblBoxFormula *pNewFml = 0, *pOldFml = 0;
-/*N*/ const SwTblBoxValue *pNewVal = 0, *pOldVal = 0;
+/*N*/ const SwTblBoxNumFormat *pNewFmt = 0;
+/*N*/ const SwTblBoxFormula *pNewFml = 0;
+/*N*/ const SwTblBoxValue *pNewVal = 0;
/*N*/ double aOldValue = 0;
/*N*/ ULONG nOldFmt = NUMBERFORMAT_TEXT;
/*N*/
-/*N*/ SwAttrSetChg *pNewChgSet = 0, *pOldChgSet = 0;
-/*N*/
/*N*/ switch( pNew ? pNew->Which() : 0 )
/*N*/ {
/*N*/ case RES_ATTRSET_CHG:
@@ -885,7 +883,7 @@ namespace binfilter {
/*N*/ (const SfxPoolItem**)&pNewFml );
/*N*/ if( SFX_ITEM_SET == rSet.GetItemState( RES_BOXATR_VALUE,
/*N*/ FALSE, (const SfxPoolItem**)&pNewVal ) )
-/*N*/ aOldValue = ((SwTblBoxValue&)((SwAttrSetChg*)pOld)->
+/*N*/ ((SwTblBoxValue&)((SwAttrSetChg*)pOld)->
/*N*/ GetChgSet()->Get( RES_BOXATR_VALUE )).GetValue();
/*N*/ }
/*N*/ break;
@@ -899,7 +897,7 @@ namespace binfilter {
/*N*/ break;
/*N*/ case RES_BOXATR_VALUE:
/*N*/ pNewVal = (SwTblBoxValue*)pNew;
-/*N*/ aOldValue = ((SwTblBoxValue*)pOld)->GetValue();
+/*N*/ ((SwTblBoxValue*)pOld)->GetValue();
/*N*/ break;
/*N*/ }
/*N*/
More information about the Libreoffice-commits
mailing list