diff options
author | Noel Grandin <noel@peralex.com> | 2014-12-01 10:16:37 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-12-02 09:32:09 +0200 |
commit | 9a0f88cf27243ae8fc655aa798ed04b8f27e01ed (patch) | |
tree | 0590eb86f7880315dcb1fe059b79d147e4f7afd9 /sw/source/ui/envelp/envfmt.cxx | |
parent | 5504035ac07442cc2b77b53f953fcd7d8a4d8648 (diff) |
loplugin: cstylecast
Change-Id: I0bba962b4110cb988a6beda71cfc347c4d31d279
Diffstat (limited to 'sw/source/ui/envelp/envfmt.cxx')
-rw-r--r-- | sw/source/ui/envelp/envfmt.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/envelp/envfmt.cxx b/sw/source/ui/envelp/envfmt.cxx index 34179316f140..ee77182d7ac0 100644 --- a/sw/source/ui/envelp/envfmt.cxx +++ b/sw/source/ui/envelp/envfmt.cxx @@ -277,8 +277,8 @@ IMPL_LINK( SwEnvFmtPage, EditHdl, MenuButton *, pButton ) SfxAllItemSet aTmpSet(*pCollSet); // Insert tabs, default tabs into ItemSet - const SvxTabStopItem& rDefTabs = (const SvxTabStopItem&) - pSh->GetView().GetCurShell()->GetPool().GetDefaultItem(RES_PARATR_TABSTOP); + const SvxTabStopItem& rDefTabs = static_cast<const SvxTabStopItem&>( + pSh->GetView().GetCurShell()->GetPool().GetDefaultItem(RES_PARATR_TABSTOP)); const sal_uInt16 nDefDist = static_cast<sal_uInt16>(::GetTabDist( rDefTabs )); SfxUInt16Item aDefDistItem( SID_ATTR_TABSTOP_DEFAULTS, nDefDist ); @@ -492,7 +492,7 @@ bool SwEnvFmtPage::FillItemSet(SfxItemSet* rSet) void SwEnvFmtPage::Reset(const SfxItemSet* rSet) { - const SwEnvItem& rItem = (const SwEnvItem&) rSet->Get(FN_ENVELOP); + const SwEnvItem& rItem = static_cast<const SwEnvItem&>( rSet->Get(FN_ENVELOP)); Paper ePaper = SvxPaperInfo::GetSvxPaper( Size( std::min(rItem.lWidth, rItem.lHeight), |