diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-24 10:39:10 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-25 10:09:50 +0200 |
commit | 64572975221c9fafed8363393d96f6a11b14e92c (patch) | |
tree | 513df982eac45c32b2c446961c2fe1bc6da38dde /sw/source/core/edit/edtox.cxx | |
parent | 1be3bfed0a76c7e43f0376fb375abcfb5d954eb8 (diff) |
loplugin: cstylecast
Change-Id: I8c5d2302695d22e4fe976a370b75b26dec373024
Diffstat (limited to 'sw/source/core/edit/edtox.cxx')
-rw-r--r-- | sw/source/core/edit/edtox.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/edit/edtox.cxx b/sw/source/core/edit/edtox.cxx index 7504cce86063..b9c3db188d82 100644 --- a/sw/source/core/edit/edtox.cxx +++ b/sw/source/core/edit/edtox.cxx @@ -106,7 +106,7 @@ void SwEditShell::SetTOXBaseReadonly(const SwTOXBase& rTOXBase, bool bReadonly) { OSL_ENSURE( rTOXBase.ISA( SwTOXBaseSection ), "no TOXBaseSection!" ); const SwTOXBaseSection& rTOXSect = static_cast<const SwTOXBaseSection&>(rTOXBase); - ((SwTOXBase&)rTOXBase).SetProtected(bReadonly); + const_cast<SwTOXBase&>(rTOXBase).SetProtected(bReadonly); OSL_ENSURE( rTOXSect.SwSection::GetType() == TOX_CONTENT_SECTION, "not a TOXContentSection" ); SwSectionData aSectionData(rTOXSect); @@ -143,7 +143,7 @@ void SwEditShell::InsertTableOf( const SwTOXBase& rTOX, const SfxItemSet* pSet ) CalcLayout(); // insert page numbering - ((SwTOXBaseSection*)pTOX)->UpdatePageNum(); + const_cast<SwTOXBaseSection*>(pTOX)->UpdatePageNum(); pTOX->SetPosAtStartEnd( *GetCrsr()->GetPoint() ); |