[Libreoffice-commits] .: binfilter/bf_sw
Caolán McNamara
caolan at kemper.freedesktop.org
Sun Nov 28 07:06:24 PST 2010
binfilter/bf_sw/source/core/sw3io/sw_sw3style.cxx | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
New commits:
commit 35f7c2610b5f75aa265936e84a182f89abf3aa52
Author: Pierre-André Jacquod <pjacquod at alumni.ethz.ch>
Date: Sat Nov 27 00:06:37 2010 +0100
binfilter - sw_sw3style.cxx (shadowing) warnings removal
diff --git a/binfilter/bf_sw/source/core/sw3io/sw_sw3style.cxx b/binfilter/bf_sw/source/core/sw3io/sw_sw3style.cxx
index db98772..e5fe502 100644
--- a/binfilter/bf_sw/source/core/sw3io/sw_sw3style.cxx
+++ b/binfilter/bf_sw/source/core/sw3io/sw_sw3style.cxx
@@ -187,10 +187,10 @@ public:
////////////////////////////////////////////////////////////////////////////
-/*N*/ SwStyleSheet::SwStyleSheet( const String& rName, SwStyleSheetPool& rPool,
-/*N*/ SfxStyleFamily eFam, USHORT nMask )
-/*N*/ : SfxStyleSheetBase( rName, rPool, eFam, nMask ),
-/*N*/ rDoc( rPool.rDoc ), aSet( rPool.rPool,
+/*N*/ SwStyleSheet::SwStyleSheet( const String& rName, SwStyleSheetPool& rPool1,
+/*N*/ SfxStyleFamily eFam, USHORT nMask1 )
+/*N*/ : SfxStyleSheetBase( rName, rPool1, eFam, nMask1 ),
+/*N*/ rDoc( rPool1.rDoc ), aSet( rPool1.rPool,
/*N*/ RES_CHRATR_BEGIN, RES_CHRATR_END - 1,
/*N*/ RES_PARATR_BEGIN, RES_PARATR_END - 1,
/*N*/ RES_FRMATR_BEGIN, RES_FRMATR_END - 1,
@@ -426,11 +426,15 @@ public:
/*N*/ pParent = (*rDoc.GetFrmFmts())[ 0 ]; break;
/*N*/ case SFX_STYLE_FAMILY_PARA:
/*N*/ pParent = (*rDoc.GetTxtFmtColls())[ 0 ]; break;
+ default:
+ break;
/*N*/ }
/*N*/ if( pParent )
/*N*/ pFmt->SetDerivedFrom( pParent );
/*N*/ else
+ {
/*N*/ ASSERT( !this, "Parent nicht gefunden" );
+ }
/*N*/ }
// Setzen des Follows
@@ -447,7 +451,9 @@ public:
/*N*/ if( pFollow )
/*N*/ GetColl()->SetNextTxtFmtColl( *pFollow );
/*N*/ else
+ {
/*N*/ ASSERT( !this, "Follow nicht gefunden" );
+ }
/*N*/ }
/*N*/ }
@@ -998,7 +1004,9 @@ sal_Char const SW_CONSTASCII_DEF( sHTML_listing, "LISTING" );
/*?*/ DBG_BF_ASSERT(0, "STRIP"); //STRIP001 ((SwConditionTxtFmtColl*)p->pFmt)->InsertCondition(
/*?*/ }
/*?*/ else
+ {
/*?*/ ASSERT( !this, "Collection nicht gefunden" );
+ }
/*N*/ }
/*N*/ }
/*N*/ //FEATURE::CONDCOLL
@@ -1009,9 +1017,9 @@ sal_Char const SW_CONSTASCII_DEF( sHTML_listing, "LISTING" );
// Faktorei
/*N*/ SfxStyleSheetBase* __EXPORT SwStyleSheetPool::Create( const String& rName,
-/*N*/ SfxStyleFamily eFam, USHORT nMask)
+/*N*/ SfxStyleFamily eFam, USHORT nMask2)
/*N*/ {
-/*N*/ return new SwStyleSheet( rName, *this, eFam, nMask);
+/*N*/ return new SwStyleSheet( rName, *this, eFam, nMask2);
/*N*/ }
More information about the Libreoffice-commits
mailing list