Kaydet (Commit) 8ca0f985 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#705375 Mixing enum types

Change-Id: Ic7cb53d8fe427b4c28b890b64fa4437846b5b493
üst ff998ca8
...@@ -343,7 +343,7 @@ namespace pcr ...@@ -343,7 +343,7 @@ namespace pcr
const SvxWeightItem& rWeightItem = const SvxWeightItem& rWeightItem =
static_cast<const SvxWeightItem&>(_rSet.Get(CFID_WEIGHT)); static_cast<const SvxWeightItem&>(_rSet.Get(CFID_WEIGHT));
float nWeight = VCLUnoHelper::ConvertFontWeight( rWeightItem.GetWeight()); float nWeight = VCLUnoHelper::ConvertFontWeight(rWeightItem.GetWeight());
lcl_pushBackPropertyValue( _out_properties, PROPERTY_FONT_WEIGHT,makeAny(nWeight)); lcl_pushBackPropertyValue( _out_properties, PROPERTY_FONT_WEIGHT,makeAny(nWeight));
} }
...@@ -356,7 +356,7 @@ namespace pcr ...@@ -356,7 +356,7 @@ namespace pcr
const SvxPostureItem& rPostureItem = const SvxPostureItem& rPostureItem =
static_cast<const SvxPostureItem&>(_rSet.Get(CFID_POSTURE)); static_cast<const SvxPostureItem&>(_rSet.Get(CFID_POSTURE));
::com::sun::star::awt::FontSlant eSlant = (::com::sun::star::awt::FontSlant)rPostureItem.GetPosture(); ::com::sun::star::awt::FontSlant eSlant = VCLUnoHelper::ConvertFontSlant(rPostureItem.GetPosture());
lcl_pushBackPropertyValue( _out_properties, PROPERTY_FONT_SLANT, makeAny((sal_Int16)eSlant)); lcl_pushBackPropertyValue( _out_properties, PROPERTY_FONT_SLANT, makeAny((sal_Int16)eSlant));
} }
......
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