summaryrefslogtreecommitdiff
path: root/svl/source/items/srchitem.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:14:44 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:14:44 +0100
commitdead6b3a944d0100ef833bb5d7f92bcd2563ada4 (patch)
tree3353ff138015cf48c38db8abaa9bc3478271b2cd /svl/source/items/srchitem.cxx
parent43b137e1404acbd16649813e9d493ba97b8f509c (diff)
More loplugin:cstylecast: svl
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I71e3b2c9b4c68183288f43999d242e95ae13584d
Diffstat (limited to 'svl/source/items/srchitem.cxx')
-rw-r--r--svl/source/items/srchitem.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svl/source/items/srchitem.cxx b/svl/source/items/srchitem.cxx
index 0bfa0a9eea71..2c7798e4807b 100644
--- a/svl/source/items/srchitem.cxx
+++ b/svl/source/items/srchitem.cxx
@@ -486,7 +486,7 @@ bool SvxSearchItem::QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId ) const
nLocale = LanguageTag::convertToLanguageType( m_aSearchOpt.Locale );
else
nLocale = LANGUAGE_NONE;
- rVal <<= (sal_Int16)(sal_uInt16)nLocale;
+ rVal <<= static_cast<sal_Int16>(static_cast<sal_uInt16>(nLocale));
break;
}
@@ -608,7 +608,7 @@ bool SvxSearchItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId )
case MID_SEARCH_COMMAND:
bRet = (rVal >>= nInt); m_nCommand = static_cast<SvxSearchCmd>(nInt); break;
case MID_SEARCH_STYLEFAMILY:
- bRet = (rVal >>= nInt); m_eFamily = (SfxStyleFamily) (sal_Int16) nInt; break;
+ bRet = (rVal >>= nInt); m_eFamily = (SfxStyleFamily) static_cast<sal_Int16>(nInt); break;
case MID_SEARCH_CELLTYPE:
bRet = (rVal >>= nInt); m_nCellType = static_cast<SvxSearchCellType>(nInt); break;
case MID_SEARCH_ROWDIRECTION:
@@ -628,9 +628,9 @@ bool SvxSearchItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId )
case MID_SEARCH_ASIANOPTIONS:
bRet = (rVal >>= m_bAsianOptions); break;
case MID_SEARCH_ALGORITHMTYPE:
- bRet = (rVal >>= nInt); m_aSearchOpt.algorithmType = (SearchAlgorithms)(sal_Int16)nInt; break;
+ bRet = (rVal >>= nInt); m_aSearchOpt.algorithmType = (SearchAlgorithms)static_cast<sal_Int16>(nInt); break;
case MID_SEARCH_ALGORITHMTYPE2:
- bRet = (rVal >>= nInt); m_aSearchOpt.AlgorithmType2 = (sal_Int16)nInt; break;
+ bRet = (rVal >>= nInt); m_aSearchOpt.AlgorithmType2 = static_cast<sal_Int16>(nInt); break;
case MID_SEARCH_FLAGS:
bRet = (rVal >>= m_aSearchOpt.searchFlag); break;
case MID_SEARCH_SEARCHSTRING: