Kaydet (Commit) 28157cf0 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS sb59 (1.32.62); FILE MERGED

2006/09/01 08:01:24 sb 1.32.62.2: #i67535# Made code warning-free (GCC 4.0.3).
2006/08/03 13:51:49 cl 1.32.62.1: removed compiler warnings
üst 5a422257
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: paraitem.cxx,v $ * $RCSfile: paraitem.cxx,v $
* *
* $Revision: 1.33 $ * $Revision: 1.34 $
* *
* last change: $Author: obo $ $Date: 2006-09-17 05:22:24 $ * last change: $Author: obo $ $Date: 2006-10-12 12:55:21 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -316,7 +316,7 @@ SfxItemPresentation SvxLineSpacingItem::GetPresentation ...@@ -316,7 +316,7 @@ SfxItemPresentation SvxLineSpacingItem::GetPresentation
SfxItemPresentation /*ePres*/, SfxItemPresentation /*ePres*/,
SfxMapUnit /*eCoreUnit*/, SfxMapUnit /*eCoreUnit*/,
SfxMapUnit /*ePresUnit*/, SfxMapUnit /*ePresUnit*/,
XubString& rText, const IntlWrapper */*pIntl*/ XubString& rText, const IntlWrapper *
) const ) const
{ {
#ifndef PRODUCT #ifndef PRODUCT
...@@ -509,7 +509,7 @@ SfxItemPresentation SvxAdjustItem::GetPresentation ...@@ -509,7 +509,7 @@ SfxItemPresentation SvxAdjustItem::GetPresentation
SfxItemPresentation ePres, SfxItemPresentation ePres,
SfxMapUnit /*eCoreUnit*/, SfxMapUnit /*eCoreUnit*/,
SfxMapUnit /*ePresUnit*/, SfxMapUnit /*ePresUnit*/,
XubString& rText, const IntlWrapper */*pIntl*/ XubString& rText, const IntlWrapper *
) const ) const
{ {
switch ( ePres ) switch ( ePres )
...@@ -545,7 +545,7 @@ XubString SvxAdjustItem::GetValueTextByPos( sal_uInt16 nPos ) const ...@@ -545,7 +545,7 @@ XubString SvxAdjustItem::GetValueTextByPos( sal_uInt16 nPos ) const
sal_uInt16 SvxAdjustItem::GetEnumValue() const sal_uInt16 SvxAdjustItem::GetEnumValue() const
{ {
return GetAdjust(); return (sal_uInt16)GetAdjust();
} }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
...@@ -638,7 +638,7 @@ SfxItemPresentation SvxWidowsItem::GetPresentation ...@@ -638,7 +638,7 @@ SfxItemPresentation SvxWidowsItem::GetPresentation
SfxItemPresentation ePres, SfxItemPresentation ePres,
SfxMapUnit /*eCoreUnit*/, SfxMapUnit /*eCoreUnit*/,
SfxMapUnit /*ePresUnit*/, SfxMapUnit /*ePresUnit*/,
XubString& rText, const IntlWrapper */*pIntl*/ XubString& rText, const IntlWrapper *
) const ) const
{ {
switch ( ePres ) switch ( ePres )
...@@ -700,7 +700,7 @@ SfxItemPresentation SvxOrphansItem::GetPresentation ...@@ -700,7 +700,7 @@ SfxItemPresentation SvxOrphansItem::GetPresentation
SfxItemPresentation ePres, SfxItemPresentation ePres,
SfxMapUnit /*eCoreUnit*/, SfxMapUnit /*eCoreUnit*/,
SfxMapUnit /*ePresUnit*/, SfxMapUnit /*ePresUnit*/,
XubString& rText, const IntlWrapper */*pIntl*/ XubString& rText, const IntlWrapper *
) const ) const
{ {
switch ( ePres ) switch ( ePres )
...@@ -813,7 +813,7 @@ SfxItemPresentation SvxHyphenZoneItem::GetPresentation ...@@ -813,7 +813,7 @@ SfxItemPresentation SvxHyphenZoneItem::GetPresentation
SfxItemPresentation ePres, SfxItemPresentation ePres,
SfxMapUnit /*eCoreUnit*/, SfxMapUnit /*eCoreUnit*/,
SfxMapUnit /*ePresUnit*/, SfxMapUnit /*ePresUnit*/,
XubString& rText, const IntlWrapper */*pIntl*/ XubString& rText, const IntlWrapper *
) const ) const
{ {
switch ( ePres ) switch ( ePres )
...@@ -1269,8 +1269,8 @@ SvStream& SvxTabStopItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/ ) ...@@ -1269,8 +1269,8 @@ SvStream& SvxTabStopItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/ )
&& ::IsDefaultItem( this ); && ::IsDefaultItem( this );
const short nTabs = Count(); const short nTabs = Count();
sal_uInt16 nCount = 0, nDefDist; sal_uInt16 nCount = 0, nDefDist = 0;
long nNew; long nNew = 0;
if( bStoreDefTabs ) if( bStoreDefTabs )
{ {
...@@ -1284,7 +1284,7 @@ SvStream& SvxTabStopItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/ ) ...@@ -1284,7 +1284,7 @@ SvStream& SvxTabStopItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/ )
if( nNew <= nPos + 50 ) if( nNew <= nPos + 50 )
nNew += nDefDist; nNew += nDefDist;
nCount = nNew < lA3Width ? ( lA3Width - nNew ) / nDefDist + 1 : 0; nCount = (sal_uInt16)(nNew < lA3Width ? ( lA3Width - nNew ) / nDefDist + 1 : 0);
} }
rStrm << (sal_Int8) ( nTabs + nCount ); rStrm << (sal_Int8) ( nTabs + nCount );
...@@ -1369,7 +1369,7 @@ SfxItemPresentation SvxFmtSplitItem::GetPresentation ...@@ -1369,7 +1369,7 @@ SfxItemPresentation SvxFmtSplitItem::GetPresentation
SfxItemPresentation ePres, SfxItemPresentation ePres,
SfxMapUnit /*eCoreUnit*/, SfxMapUnit /*eCoreUnit*/,
SfxMapUnit /*ePresUnit*/, SfxMapUnit /*ePresUnit*/,
XubString& rText, const IntlWrapper */*pIntl*/ XubString& rText, const IntlWrapper *
) const ) const
{ {
switch ( ePres ) switch ( ePres )
...@@ -1437,7 +1437,7 @@ SfxItemPresentation SvxPageModelItem::GetPresentation ...@@ -1437,7 +1437,7 @@ SfxItemPresentation SvxPageModelItem::GetPresentation
SfxItemPresentation ePres, SfxItemPresentation ePres,
SfxMapUnit /*eCoreUnit*/, SfxMapUnit /*eCoreUnit*/,
SfxMapUnit /*ePresUnit*/, SfxMapUnit /*ePresUnit*/,
XubString& rText, const IntlWrapper */*pIntl*/ XubString& rText, const IntlWrapper *
) const ) const
{ {
rText.Erase(); rText.Erase();
...@@ -1472,7 +1472,7 @@ SvxScriptSpaceItem::SvxScriptSpaceItem( sal_Bool bOn, const sal_uInt16 nId ) ...@@ -1472,7 +1472,7 @@ SvxScriptSpaceItem::SvxScriptSpaceItem( sal_Bool bOn, const sal_uInt16 nId )
{ {
} }
SfxPoolItem* SvxScriptSpaceItem::Clone( SfxItemPool */*pPool*/ ) const SfxPoolItem* SvxScriptSpaceItem::Clone( SfxItemPool * ) const
{ {
return new SvxScriptSpaceItem( GetValue(), Which() ); return new SvxScriptSpaceItem( GetValue(), Which() );
} }
...@@ -1512,7 +1512,6 @@ SfxItemPresentation SvxScriptSpaceItem::GetPresentation( ...@@ -1512,7 +1512,6 @@ SfxItemPresentation SvxScriptSpaceItem::GetPresentation(
: RID_SVXITEMS_SCRPTSPC_ON ); : RID_SVXITEMS_SCRPTSPC_ON );
return ePres; return ePres;
} }
break;
default: ;//prevent warning default: ;//prevent warning
} }
return SFX_ITEM_PRESENTATION_NONE; return SFX_ITEM_PRESENTATION_NONE;
...@@ -1526,7 +1525,7 @@ SvxHangingPunctuationItem::SvxHangingPunctuationItem( ...@@ -1526,7 +1525,7 @@ SvxHangingPunctuationItem::SvxHangingPunctuationItem(
{ {
} }
SfxPoolItem* SvxHangingPunctuationItem::Clone( SfxItemPool */*pPool*/ ) const SfxPoolItem* SvxHangingPunctuationItem::Clone( SfxItemPool * ) const
{ {
return new SvxHangingPunctuationItem( GetValue(), Which() ); return new SvxHangingPunctuationItem( GetValue(), Which() );
} }
...@@ -1566,8 +1565,8 @@ SfxItemPresentation SvxHangingPunctuationItem::GetPresentation( ...@@ -1566,8 +1565,8 @@ SfxItemPresentation SvxHangingPunctuationItem::GetPresentation(
: RID_SVXITEMS_HNGPNCT_ON ); : RID_SVXITEMS_HNGPNCT_ON );
return ePres; return ePres;
} }
break;
default: ;//prevent warning default: ;//prevent warning
break;
} }
return SFX_ITEM_PRESENTATION_NONE; return SFX_ITEM_PRESENTATION_NONE;
} }
...@@ -1581,7 +1580,7 @@ SvxForbiddenRuleItem::SvxForbiddenRuleItem( ...@@ -1581,7 +1580,7 @@ SvxForbiddenRuleItem::SvxForbiddenRuleItem(
/* -----------------------------29.11.00 11:23-------------------------------- /* -----------------------------29.11.00 11:23--------------------------------
---------------------------------------------------------------------------*/ ---------------------------------------------------------------------------*/
SfxPoolItem* SvxForbiddenRuleItem::Clone( SfxItemPool */*pPool*/ ) const SfxPoolItem* SvxForbiddenRuleItem::Clone( SfxItemPool * ) const
{ {
return new SvxForbiddenRuleItem( GetValue(), Which() ); return new SvxForbiddenRuleItem( GetValue(), Which() );
} }
...@@ -1627,8 +1626,8 @@ SfxItemPresentation SvxForbiddenRuleItem::GetPresentation( ...@@ -1627,8 +1626,8 @@ SfxItemPresentation SvxForbiddenRuleItem::GetPresentation(
: RID_SVXITEMS_FORBIDDEN_RULE_ON ); : RID_SVXITEMS_FORBIDDEN_RULE_ON );
return ePres; return ePres;
} }
break;
default: ;//prevent warning default: ;//prevent warning
break;
} }
return SFX_ITEM_PRESENTATION_NONE; return SFX_ITEM_PRESENTATION_NONE;
} }
...@@ -1691,8 +1690,8 @@ SfxItemPresentation SvxParaVertAlignItem::GetPresentation( ...@@ -1691,8 +1690,8 @@ SfxItemPresentation SvxParaVertAlignItem::GetPresentation(
rText = SVX_RESSTR( nTmp ); rText = SVX_RESSTR( nTmp );
return ePres; return ePres;
} }
break;
default: ;//prevent warning default: ;//prevent warning
break;
} }
return SFX_ITEM_PRESENTATION_NONE; return SFX_ITEM_PRESENTATION_NONE;
} }
...@@ -1707,7 +1706,7 @@ sal_Bool SvxParaVertAlignItem::QueryValue( com::sun::star::uno::Any& rVal, ...@@ -1707,7 +1706,7 @@ sal_Bool SvxParaVertAlignItem::QueryValue( com::sun::star::uno::Any& rVal,
sal_Bool SvxParaVertAlignItem::PutValue( const com::sun::star::uno::Any& rVal, sal_Bool SvxParaVertAlignItem::PutValue( const com::sun::star::uno::Any& rVal,
BYTE /*nMemberId*/ ) BYTE /*nMemberId*/ )
{ {
sal_Int16 nVal; sal_Int16 nVal = sal_Int16();
if((rVal >>= nVal) && nVal >=0 && nVal <= BOTTOM ) if((rVal >>= nVal) && nVal >=0 && nVal <= BOTTOM )
{ {
SetValue( (USHORT)nVal ); SetValue( (USHORT)nVal );
...@@ -1770,8 +1769,8 @@ SfxItemPresentation SvxParaGridItem::GetPresentation( ...@@ -1770,8 +1769,8 @@ SfxItemPresentation SvxParaGridItem::GetPresentation(
return ePres; return ePres;
} }
break;
default: ;//prevent warning default: ;//prevent warning
break;
} }
return SFX_ITEM_PRESENTATION_NONE; return SFX_ITEM_PRESENTATION_NONE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment