summaryrefslogtreecommitdiff
path: root/unotools/source/config/fontcfg.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:01:51 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:01:51 +0100
commitc80e341726c5acc0b7c23842c6b5e97d32a7d4f4 (patch)
tree2c3d05f2cdcef831a884cd0882a3f0dacb17c4fd /unotools/source/config/fontcfg.cxx
parent64089f779060203d892f1200ccd1a1875d9c53ff (diff)
More loplugin:cstylecast: unotools
Change-Id: I04af756527ff42ad83a1b68730230864233c4fac
Diffstat (limited to 'unotools/source/config/fontcfg.cxx')
-rw-r--r--unotools/source/config/fontcfg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx
index 502f80b16730..0ffc882342e7 100644
--- a/unotools/source/config/fontcfg.cxx
+++ b/unotools/source/config/fontcfg.cxx
@@ -930,7 +930,7 @@ FontWeight FontSubstConfiguration::getSubstWeight( const css::uno::Reference< XN
catch (const WrappedTargetException&)
{
}
- return (FontWeight)( weight >= 0 ? pWeightNames[weight].nEnum : WEIGHT_DONTKNOW );
+ return static_cast<FontWeight>( weight >= 0 ? pWeightNames[weight].nEnum : WEIGHT_DONTKNOW );
}
FontWidth FontSubstConfiguration::getSubstWidth( const css::uno::Reference< XNameAccess >& rFont,
@@ -957,7 +957,7 @@ FontWidth FontSubstConfiguration::getSubstWidth( const css::uno::Reference< XNam
catch (const WrappedTargetException&)
{
}
- return (FontWidth)( width >= 0 ? pWidthNames[width].nEnum : WIDTH_DONTKNOW );
+ return static_cast<FontWidth>( width >= 0 ? pWidthNames[width].nEnum : WIDTH_DONTKNOW );
}
ImplFontAttrs FontSubstConfiguration::getSubstType( const css::uno::Reference< XNameAccess >& rFont,