diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:02:31 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:02:31 +0100 |
commit | d9d92d20fdc414c5956290c10c4d473dcb836ceb (patch) | |
tree | 02c6079b0fbbae106e51dd307202ec2415f3340f /svx/source/items | |
parent | a5eddfbf45277eea21dd2271b36e9668313eadf3 (diff) |
More loplugin:cstylecast: svx
Change-Id: If370ad12d2885ea9a6348736a3bcab618bc2e6ec
Diffstat (limited to 'svx/source/items')
-rw-r--r-- | svx/source/items/algitem.cxx | 4 | ||||
-rw-r--r-- | svx/source/items/clipfmtitem.cxx | 2 | ||||
-rw-r--r-- | svx/source/items/hlnkitem.cxx | 2 | ||||
-rw-r--r-- | svx/source/items/numfmtsh.cxx | 6 | ||||
-rw-r--r-- | svx/source/items/pageitem.cxx | 4 | ||||
-rw-r--r-- | svx/source/items/rotmodit.cxx | 2 |
6 files changed, 10 insertions, 10 deletions
diff --git a/svx/source/items/algitem.cxx b/svx/source/items/algitem.cxx index a6464bf11161..ef505418fc3a 100644 --- a/svx/source/items/algitem.cxx +++ b/svx/source/items/algitem.cxx @@ -101,7 +101,7 @@ bool SvxOrientationItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/ sal_Int32 nValue = 0; if(!(rVal >>= nValue)) return false; - eOrient = (table::CellOrientation)nValue; + eOrient = static_cast<table::CellOrientation>(nValue); } SvxCellOrientation eSvx = SvxCellOrientation::Standard; switch (eOrient) @@ -133,7 +133,7 @@ SfxPoolItem* SvxOrientationItem::Create( SvStream& rStream, sal_uInt16 ) const { sal_uInt16 nVal; rStream.ReadUInt16( nVal ); - return new SvxOrientationItem( (SvxCellOrientation)nVal, Which() ); + return new SvxOrientationItem( static_cast<SvxCellOrientation>(nVal), Which() ); } diff --git a/svx/source/items/clipfmtitem.cxx b/svx/source/items/clipfmtitem.cxx index 2855ae46789e..c7c0f4968a6e 100644 --- a/svx/source/items/clipfmtitem.cxx +++ b/svx/source/items/clipfmtitem.cxx @@ -59,7 +59,7 @@ bool SvxClipboardFormatItem::QueryValue( css::uno::Any& rVal, sal_uInt8 /*nMembe aClipFormats.Names.realloc( nCount ); for ( sal_uInt16 n=0; n < nCount; n++ ) { - aClipFormats.Identifiers[n] = (sal_Int64)GetClipbrdFormatId( n ); + aClipFormats.Identifiers[n] = static_cast<sal_Int64>(GetClipbrdFormatId( n )); aClipFormats.Names[n] = GetClipbrdFormatName( n ); } diff --git a/svx/source/items/hlnkitem.cxx b/svx/source/items/hlnkitem.cxx index 4585b270d2d0..d11249c74b10 100644 --- a/svx/source/items/hlnkitem.cxx +++ b/svx/source/items/hlnkitem.cxx @@ -175,7 +175,7 @@ bool SvxHyperlinkItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId case MID_HLINK_TYPE: if(!(rVal >>= nVal)) return false; - eType = (SvxLinkInsertMode) static_cast<sal_uInt16>(nVal); + eType = static_cast<SvxLinkInsertMode>(static_cast<sal_uInt16>(nVal)); break; default: return false; diff --git a/svx/source/items/numfmtsh.cxx b/svx/source/items/numfmtsh.cxx index 6a23dd3b9d97..03840282e695 100644 --- a/svx/source/items/numfmtsh.cxx +++ b/svx/source/items/numfmtsh.cxx @@ -680,7 +680,7 @@ short SvxNumberFormatShell::FillEListWithFormats_Impl( std::vector<OUString>& rL for(nIndex=eOffsetStart;nIndex<=eOffsetEnd;nIndex++) { - nNFEntry=pFormatter->GetFormatIndex((NfIndexTableOffset)nIndex,eCurLanguage); + nNFEntry=pFormatter->GetFormatIndex(static_cast<NfIndexTableOffset>(nIndex),eCurLanguage); const SvNumberformat* pNumEntry = pFormatter->GetEntry(nNFEntry); @@ -714,7 +714,7 @@ short SvxNumberFormatShell::FillEListWithDateTime_Impl( std::vector<OUString>& r for (long nIndex = NF_DATETIME_START; nIndex <= NF_DATETIME_END; ++nIndex) { - nNFEntry=pFormatter->GetFormatIndex((NfIndexTableOffset)nIndex,eCurLanguage); + nNFEntry=pFormatter->GetFormatIndex(static_cast<NfIndexTableOffset>(nIndex),eCurLanguage); const SvNumberformat* pNumEntry = pFormatter->GetEntry(nNFEntry); if(pNumEntry!=nullptr) @@ -789,7 +789,7 @@ short SvxNumberFormatShell::FillEListWithSysCurrencys( std::vector<OUString>& rL for(long nIndex=NF_CURRENCY_START; nIndex<=NF_CURRENCY_END; nIndex++) { - nNFEntry=pFormatter->GetFormatIndex((NfIndexTableOffset)nIndex,eCurLanguage); + nNFEntry=pFormatter->GetFormatIndex(static_cast<NfIndexTableOffset>(nIndex),eCurLanguage); const SvNumberformat* pNumEntry = pFormatter->GetEntry(nNFEntry); diff --git a/svx/source/items/pageitem.cxx b/svx/source/items/pageitem.cxx index f18e4fe50037..166eff735ffc 100644 --- a/svx/source/items/pageitem.cxx +++ b/svx/source/items/pageitem.cxx @@ -199,7 +199,7 @@ bool SvxPageItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) if(!(rVal >>= nValue)) return false; - eNumType = (SvxNumType)nValue; + eNumType = static_cast<SvxNumType>(nValue); } break; case MID_PAGE_ORIENTATION: @@ -213,7 +213,7 @@ bool SvxPageItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) sal_Int32 nValue = 0; if(!(rVal >>= nValue)) return false; - eLayout = (style::PageStyleLayout)nValue; + eLayout = static_cast<style::PageStyleLayout>(nValue); } switch( eLayout ) { diff --git a/svx/source/items/rotmodit.cxx b/svx/source/items/rotmodit.cxx index 0652f38f5d97..b1f21a131517 100644 --- a/svx/source/items/rotmodit.cxx +++ b/svx/source/items/rotmodit.cxx @@ -60,7 +60,7 @@ SfxPoolItem* SvxRotateModeItem::Create( SvStream& rStream, sal_uInt16 ) const { sal_uInt16 nVal; rStream.ReadUInt16( nVal ); - return new SvxRotateModeItem( (SvxRotateMode) nVal,Which() ); + return new SvxRotateModeItem( static_cast<SvxRotateMode>(nVal),Which() ); } bool SvxRotateModeItem::GetPresentation( |