summaryrefslogtreecommitdiff
path: root/editeng/source/uno
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-03-15 13:06:21 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-15 18:36:37 +0000
commit82981b94feeae5fb1fb72139ce87fbc22ef33601 (patch)
treee4a05955832137210c5cbbf0b68510cd22ccaf7e /editeng/source/uno
parente0d86cff2b3314576c6cb857da06d6b6d217f89b (diff)
remove useless casts
Change-Id: I900b72372a56d341d18091b0d4721d31002d147f Reviewed-on: https://gerrit.libreoffice.org/35223 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source/uno')
-rw-r--r--editeng/source/uno/unofdesc.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/editeng/source/uno/unofdesc.cxx b/editeng/source/uno/unofdesc.cxx
index 69d08901322f..48dbeb4ddcc9 100644
--- a/editeng/source/uno/unofdesc.cxx
+++ b/editeng/source/uno/unofdesc.cxx
@@ -95,28 +95,28 @@ void SvxUnoFontDescriptor::FillItemSet( const awt::FontDescriptor& rDesc, SfxIte
}
{
- SvxPostureItem aPostureItem( (FontItalic)0, EE_CHAR_ITALIC );
+ SvxPostureItem aPostureItem( ITALIC_NONE, EE_CHAR_ITALIC );
aTemp <<= rDesc.Slant;
static_cast<SfxPoolItem*>(&aPostureItem)->PutValue( aTemp, MID_POSTURE );
rSet.Put(aPostureItem);
}
{
- SvxUnderlineItem aUnderlineItem( (FontLineStyle)0, EE_CHAR_UNDERLINE );
+ SvxUnderlineItem aUnderlineItem( LINESTYLE_NONE, EE_CHAR_UNDERLINE );
aTemp <<= (sal_Int16)rDesc.Underline;
static_cast<SfxPoolItem*>(&aUnderlineItem)->PutValue( aTemp, MID_TL_STYLE );
rSet.Put( aUnderlineItem );
}
{
- SvxWeightItem aWeightItem( (FontWeight)0, EE_CHAR_WEIGHT );
+ SvxWeightItem aWeightItem( WEIGHT_DONTKNOW, EE_CHAR_WEIGHT );
aTemp <<= rDesc.Weight;
static_cast<SfxPoolItem*>(&aWeightItem)->PutValue( aTemp, MID_WEIGHT );
rSet.Put( aWeightItem );
}
{
- SvxCrossedOutItem aCrossedOutItem( (FontStrikeout)0, EE_CHAR_STRIKEOUT );
+ SvxCrossedOutItem aCrossedOutItem( STRIKEOUT_NONE, EE_CHAR_STRIKEOUT );
aTemp <<= rDesc.Strikeout;
static_cast<SfxPoolItem*>(&aCrossedOutItem)->PutValue( aTemp, MID_CROSS_OUT );
rSet.Put( aCrossedOutItem );