summaryrefslogtreecommitdiff
path: root/svl/source/config
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:02:51 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:02:51 +0100
commit6a6cf93acee4f8f4e5766e5090071e9a818b6f81 (patch)
tree81af350a5166763eef97676ba22a7865c179ae33 /svl/source/config
parent6feb524aaf58009a55ea4d4e660c09b67adf26fa (diff)
More loplugin:cstylecast: svl
Change-Id: Ida9c41fab0b8b3e91d710434028dd648e6d4b135
Diffstat (limited to 'svl/source/config')
-rw-r--r--svl/source/config/asiancfg.cxx7
-rw-r--r--svl/source/config/ctloptions.cxx4
2 files changed, 5 insertions, 6 deletions
diff --git a/svl/source/config/asiancfg.cxx b/svl/source/config/asiancfg.cxx
index 6da7901f5e96..27b5b5defc92 100644
--- a/svl/source/config/asiancfg.cxx
+++ b/svl/source/config/asiancfg.cxx
@@ -88,14 +88,13 @@ void SvxAsianConfig::SetKerningWesternTextOnly(bool value) {
}
CharCompressType SvxAsianConfig::GetCharDistanceCompression() const {
- return (CharCompressType)
- officecfg::Office::Common::AsianLayout::CompressCharacterDistance::get(
- impl_->context);
+ return static_cast<CharCompressType>(officecfg::Office::Common::AsianLayout::CompressCharacterDistance::get(
+ impl_->context));
}
void SvxAsianConfig::SetCharDistanceCompression(CharCompressType value) {
officecfg::Office::Common::AsianLayout::CompressCharacterDistance::set(
- (sal_uInt16)value, impl_->batch);
+ static_cast<sal_uInt16>(value), impl_->batch);
}
css::uno::Sequence< css::lang::Locale > SvxAsianConfig::GetStartEndCharLocales()
diff --git a/svl/source/config/ctloptions.cxx b/svl/source/config/ctloptions.cxx
index 63ecb6d656db..801901d33b04 100644
--- a/svl/source/config/ctloptions.cxx
+++ b/svl/source/config/ctloptions.cxx
@@ -271,8 +271,8 @@ void SvtCTLOptions_Impl::Load()
{
switch ( nProp )
{
- case 2: { m_eCTLCursorMovement = (SvtCTLOptions::CursorMovement)nValue; m_bROCTLCursorMovement = pROStates[nProp]; } break;
- case 3: { m_eCTLTextNumerals = (SvtCTLOptions::TextNumerals)nValue; m_bROCTLTextNumerals = pROStates[nProp]; } break;
+ case 2: { m_eCTLCursorMovement = static_cast<SvtCTLOptions::CursorMovement>(nValue); m_bROCTLCursorMovement = pROStates[nProp]; } break;
+ case 3: { m_eCTLTextNumerals = static_cast<SvtCTLOptions::TextNumerals>(nValue); m_bROCTLTextNumerals = pROStates[nProp]; } break;
}
}
}