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


regards
From 0049d6aa3dd25887c742b51a764776103e67daf8 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:44:52 +0100
Subject: [PATCH 07/16] fix warning unused var in binfilter bf_sw fields

still only fixes, no optimization has been done. On purpose, avoid
introducing new bugs...
---
 binfilter/bf_sw/source/core/fields/sw_authfld.cxx |    2 +-
 binfilter/bf_sw/source/core/fields/sw_dbfld.cxx   |    2 +-
 binfilter/bf_sw/source/core/fields/sw_docufld.cxx |    4 ++--
 binfilter/bf_sw/source/core/fields/sw_fldbas.cxx  |    6 +++---
 binfilter/bf_sw/source/core/fields/sw_usrfld.cxx  |    2 +-
 5 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/binfilter/bf_sw/source/core/fields/sw_authfld.cxx 
b/binfilter/bf_sw/source/core/fields/sw_authfld.cxx
index 4a1bf01..289ca69 100644
--- a/binfilter/bf_sw/source/core/fields/sw_authfld.cxx
+++ b/binfilter/bf_sw/source/core/fields/sw_authfld.cxx
@@ -402,7 +402,7 @@ USHORT  SwAuthorityFieldType::GetSequencePos(long nHandle)
             //body the directly available text node will be used
             if(!pTxtNode)
                 pTxtNode = &rFldTxtNode;
-            ULONG nPos = pTxtNode->GetIndex();
+            pTxtNode->GetIndex();
             if( pTxtNode->GetTxt().Len() && pTxtNode->GetFrm() &&
                 pTxtNode->GetNodes().IsDocNodes() )
             {
diff --git a/binfilter/bf_sw/source/core/fields/sw_dbfld.cxx 
b/binfilter/bf_sw/source/core/fields/sw_dbfld.cxx
index 435500c..62950a9 100644
--- a/binfilter/bf_sw/source/core/fields/sw_dbfld.cxx
+++ b/binfilter/bf_sw/source/core/fields/sw_dbfld.cxx
@@ -573,7 +573,7 @@ BOOL SwDBNameInfField::PutValue( const ::com::sun::star::uno::Any& rAny, BYTE nM
 
 /*N*/ SwDBNextSetField::SwDBNextSetField(SwDBNextSetFieldType* pTyp,
 /*N*/                                                             const String& rCond,
-/*N*/                                                             const String& rDummy,
+/*N*/                                                             const String& /*rDummy*/ ,
 /*N*/                                                             const SwDBData& rDBData) :
 /*N*/  SwDBNameInfField(pTyp, rDBData), aCond(rCond), bCondValid(TRUE)
 /*N*/ {}
diff --git a/binfilter/bf_sw/source/core/fields/sw_docufld.cxx 
b/binfilter/bf_sw/source/core/fields/sw_docufld.cxx
index 0318cae..e2f0090 100644
--- a/binfilter/bf_sw/source/core/fields/sw_docufld.cxx
+++ b/binfilter/bf_sw/source/core/fields/sw_docufld.cxx
@@ -1254,7 +1254,7 @@ BOOL SwDocInfoField::PutValue( const uno::Any& rAny, BYTE nMId )
 /*N*/ 
 /*N*/  if( TYP_CONDTXTFLD == nSubType )
 /*N*/  {
-/*N*/          SwNewDBMgr* pMgr = pDoc->GetNewDBMgr();
+/*N*/          pDoc->GetNewDBMgr();
 /*N*/ 
 /*N*/          bValid = sal_False;
 /*N*/          String sTmpName;
@@ -1686,7 +1686,7 @@ BOOL SwPostItField::PutValue( const uno::Any& rAny, BYTE nMId )
 /* ---------------------------------------------------------------------------
 
  ---------------------------------------------------------------------------*/
-/*N*/ String SwExtUserFieldType::Expand(sal_uInt16 nSub, sal_uInt32 nFormat) const
+/*N*/ String SwExtUserFieldType::Expand(sal_uInt16 nSub, sal_uInt32 /*nFormat*/) const
 /*N*/ {
 /*N*/  SvxAddressItem aAdr;
 /*N*/  String aRet( aEmptyStr );
diff --git a/binfilter/bf_sw/source/core/fields/sw_fldbas.cxx 
b/binfilter/bf_sw/source/core/fields/sw_fldbas.cxx
index 5bc383c..96fda38 100644
--- a/binfilter/bf_sw/source/core/fields/sw_fldbas.cxx
+++ b/binfilter/bf_sw/source/core/fields/sw_fldbas.cxx
@@ -203,10 +203,10 @@ using namespace ::com::sun::star;
 /*N*/  return GetPar2();
 /*N*/ }
 
-void SwField::SetPar1(const String& rStr)
+void SwField::SetPar1(const String& /*rStr*/)
 {}
 
-void SwField::SetPar2(const String& rStr)
+void SwField::SetPar2(const String& /*rStr*/)
  {}
 
 /*N*/ USHORT SwField::GetSubType() const
@@ -215,7 +215,7 @@ void SwField::SetPar2(const String& rStr)
 /*N*/  return 0;
 /*N*/ }
 
-void SwField::SetSubType(USHORT nType)
+void SwField::SetSubType(USHORT /*nType*/)
 {
 //  ASSERT(0, "Sorry Not implemented");
 }
diff --git a/binfilter/bf_sw/source/core/fields/sw_usrfld.cxx 
b/binfilter/bf_sw/source/core/fields/sw_usrfld.cxx
index f7862a8..8198a19 100644
--- a/binfilter/bf_sw/source/core/fields/sw_usrfld.cxx
+++ b/binfilter/bf_sw/source/core/fields/sw_usrfld.cxx
@@ -298,7 +298,7 @@ void SwUserField::SetPar2(const String& rStr)
 /*N*/          if( GetDoc()->GetDrawModel() && GetDepends() )
 /*?*/          {DBG_BF_ASSERT(0, "STRIP"); }//STRIP001         
((SwDPage*)GetDoc()->GetDrawModel()->GetPage( 0 ))->
 /*N*/
-/*N*/          sal_Bool bModified = GetDoc()->IsModified();
+/*N*/          GetDoc()->IsModified();
 /*N*/          GetDoc()->SetModified();
 /*N*/  }
 /*N*/ }
-- 
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.