summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app/swmodul1.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/app/swmodul1.cxx')
-rw-r--r--sw/source/uibase/app/swmodul1.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/app/swmodul1.cxx b/sw/source/uibase/app/swmodul1.cxx
index 38a7371c61f3..28833656231b 100644
--- a/sw/source/uibase/app/swmodul1.cxx
+++ b/sw/source/uibase/app/swmodul1.cxx
@@ -493,7 +493,7 @@ static void lcl_FillAuthorAttr( std::size_t nAuthor, SfxItemSet &rSet,
{
case SID_ATTR_CHAR_WEIGHT:
{
- SvxWeightItem aW( (FontWeight)rAttr.m_nAttr, RES_CHRATR_WEIGHT );
+ SvxWeightItem aW( static_cast<FontWeight>(rAttr.m_nAttr), RES_CHRATR_WEIGHT );
rSet.Put( aW );
aW.SetWhich( RES_CHRATR_CJK_WEIGHT );
rSet.Put( aW );
@@ -504,7 +504,7 @@ static void lcl_FillAuthorAttr( std::size_t nAuthor, SfxItemSet &rSet,
case SID_ATTR_CHAR_POSTURE:
{
- SvxPostureItem aP( (FontItalic)rAttr.m_nAttr, RES_CHRATR_POSTURE );
+ SvxPostureItem aP( static_cast<FontItalic>(rAttr.m_nAttr), RES_CHRATR_POSTURE );
rSet.Put( aP );
aP.SetWhich( RES_CHRATR_CJK_POSTURE );
rSet.Put( aP );
@@ -514,17 +514,17 @@ static void lcl_FillAuthorAttr( std::size_t nAuthor, SfxItemSet &rSet,
break;
case SID_ATTR_CHAR_UNDERLINE:
- rSet.Put( SvxUnderlineItem( (FontLineStyle)rAttr.m_nAttr,
+ rSet.Put( SvxUnderlineItem( static_cast<FontLineStyle>(rAttr.m_nAttr),
RES_CHRATR_UNDERLINE));
break;
case SID_ATTR_CHAR_STRIKEOUT:
- rSet.Put(SvxCrossedOutItem( (FontStrikeout)rAttr.m_nAttr,
+ rSet.Put(SvxCrossedOutItem( static_cast<FontStrikeout>(rAttr.m_nAttr),
RES_CHRATR_CROSSEDOUT));
break;
case SID_ATTR_CHAR_CASEMAP:
- rSet.Put( SvxCaseMapItem( (SvxCaseMap)rAttr.m_nAttr,
+ rSet.Put( SvxCaseMapItem( static_cast<SvxCaseMap>(rAttr.m_nAttr),
RES_CHRATR_CASEMAP));
break;