Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


regards
From dafaabb2c38990bf4141c6074e15f0ca35d7e160 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pierre-Andr=C3=A9=20Jacquod?= <pjacquod@alumni.ethz.ch>
Date: Sat, 4 Dec 2010 15:19:44 +0100
Subject: [PATCH 05/16] warning fix unused var in binfilter bf_sw docnode

only warning removal, not code optimization, hence some function calls that
may not be needed anymore left behind.
---
 binfilter/bf_sw/source/core/docnode/sw_ndsect.cxx  |    5 ++---
 binfilter/bf_sw/source/core/docnode/sw_ndtbl.cxx   |    1 -
 binfilter/bf_sw/source/core/docnode/sw_node.cxx    |    2 +-
 binfilter/bf_sw/source/core/docnode/sw_section.cxx |    4 ++--
 .../bf_sw/source/core/docnode/sw_swbaslnk.cxx      |    2 +-
 5 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/binfilter/bf_sw/source/core/docnode/sw_ndsect.cxx 
b/binfilter/bf_sw/source/core/docnode/sw_ndsect.cxx
index 9612c0d..441f3ca 100644
--- a/binfilter/bf_sw/source/core/docnode/sw_ndsect.cxx
+++ b/binfilter/bf_sw/source/core/docnode/sw_ndsect.cxx
@@ -437,7 +437,7 @@ namespace binfilter {
 /*N*/  SwSection* pSection = pFmt->GetSection();
 /*N*/     /// OD 04.10.2002 #102894#
 /*N*/     /// remember hidden condition flag of SwSection before changes
-/*N*/     bool bOldCondHidden = pSection->IsCondHidden() ? true : false;
+/*N*/     pSection->IsCondHidden() ? true : false;
 /*N*/
 /*N*/  if( *pSection == rSect )
 /*N*/  {
@@ -649,7 +649,6 @@ namespace binfilter {
 /*N*/          else
 /*?*/                  new SwTxtNode( aInsPos, (SwTxtFmtColl*)GetDoc()->GetDfltTxtFmtColl() );
 /*N*/  }
-/*N*/  SwEndNode* pEndNd = new SwEndNode( aInsPos, *pSectNd );
 /*N*/
 /*N*/  pSectNd->GetSection() = rSection;
 /*N*/  SwSectionFmt* pSectFmt = pSectNd->GetSection().GetFmt();
@@ -778,7 +777,7 @@ namespace binfilter {
 /*N*/                          pLast = aIter++;
 /*N*/          }
 /*N*/  }
-/*N*/  SwDoc* pDoc = GetDoc();
+/*N*/  GetDoc();
 /*N*/
 /*N*/  SwSectionFmt* pFmt = pSection->GetFmt();
 /*N*/  if( pFmt )
diff --git a/binfilter/bf_sw/source/core/docnode/sw_ndtbl.cxx 
b/binfilter/bf_sw/source/core/docnode/sw_ndtbl.cxx
index 62293df..4a0616b 100644
--- a/binfilter/bf_sw/source/core/docnode/sw_ndtbl.cxx
+++ b/binfilter/bf_sw/source/core/docnode/sw_ndtbl.cxx
@@ -227,7 +227,6 @@ static bool lcl_IsItemSet(const SwCntntNode & rNode, USHORT which)
         SwStartNode* pSttNd = new SwStartNode( aEndIdx, ND_STARTNODE,
                                                 SwTableBoxStartNode );
         pSttNd->pStartOfSection = pTblNd;
-        SwEndNode* pEndNd = new SwEndNode( aEndIdx, *pSttNd );
 
         pPrvBox = new SwTableBox( pBoxFmt, *pSttNd, pLine );
         
diff --git a/binfilter/bf_sw/source/core/docnode/sw_node.cxx 
b/binfilter/bf_sw/source/core/docnode/sw_node.cxx
index b25a262..531f27a 100644
--- a/binfilter/bf_sw/source/core/docnode/sw_node.cxx
+++ b/binfilter/bf_sw/source/core/docnode/sw_node.cxx
@@ -1144,7 +1144,7 @@ using namespace ::com::sun::star::i18n;
     // in pIdx kann die 2. Position returnt werden.
 /*N*/ int SwCntntNode::CanJoinPrev( SwNodeIndex* pIdx ) const
 /*N*/ {
-/*N*/  const SwNodes& rNds = GetNodes();
+/*N*/  GetNodes();
 /*N*/  BYTE nNdType = GetNodeType();
 /*N*/  SwNodeIndex aIdx( *this, -1 );
 /*N*/
diff --git a/binfilter/bf_sw/source/core/docnode/sw_section.cxx 
b/binfilter/bf_sw/source/core/docnode/sw_section.cxx
index 30052bf..26b8d11 100644
--- a/binfilter/bf_sw/source/core/docnode/sw_section.cxx
+++ b/binfilter/bf_sw/source/core/docnode/sw_section.cxx
@@ -115,7 +115,7 @@ namespace binfilter {
 /*N*/  SwSectionPtr pParentSect = GetParent();
 /*N*/  if( pParentSect )
 /*N*/  {
-/*N*/          bool bPHFlag = pParentSect->IsHiddenFlag();
+/*N*/          pParentSect->IsHiddenFlag();
 /*N*/          if( pParentSect->IsHiddenFlag() )
 /*?*/                  SetHidden( TRUE );
 /*N*/
@@ -1132,7 +1132,7 @@ void SwSectionFmt::MakeFrms()
 
 
 
-/*N*/ BOOL SwIntrnlSectRefLink::IsInRange( ULONG nSttNd, ULONG nEndNd, xub_StrLen nStt, xub_StrLen 
/*nEnd */) const
+/*N*/ BOOL SwIntrnlSectRefLink::IsInRange( ULONG nSttNd, ULONG nEndNd, xub_StrLen /*nStt*/, 
xub_StrLen /*nEnd */) const
 /*N*/ {
 /*N*/  SwStartNode* pSttNd = rSectFmt.GetSectionNode( FALSE );
 /*N*/  return pSttNd &&
diff --git a/binfilter/bf_sw/source/core/docnode/sw_swbaslnk.cxx 
b/binfilter/bf_sw/source/core/docnode/sw_swbaslnk.cxx
index 920f809..75f098d 100644
--- a/binfilter/bf_sw/source/core/docnode/sw_swbaslnk.cxx
+++ b/binfilter/bf_sw/source/core/docnode/sw_swbaslnk.cxx
@@ -368,7 +368,7 @@ namespace binfilter {
 /*?*/                                  0 != (pANd = pDoc->GetNodes()[pAPos->nNode]) &&
 /*?*/                                  0 != (pTblNd = pANd->FindTableNode()) )
 /*?*/                          {
-/*?*/                                  BOOL bLastGrf = !pTblNd->GetTable().DecGrfsThatResize();
+/*?*/                                  pTblNd->GetTable().DecGrfsThatResize();
 /*?*/                                  SwHTMLTableLayout *pLayout =
 /*?*/                                          pTblNd->GetTable().GetHTMLTableLayout();
 /*?*/                                  if(     pLayout )
-- 
1.7.1


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.