diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:31:47 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:33:38 +0100 |
commit | 5429049e3b8fd12e84aca83be7ca19e52920f672 (patch) | |
tree | 3b473be72f20a82357bd3f8ee7aa558b6b517e99 /svx/source/svdraw/svdpage.cxx | |
parent | 0d05f417c3a7dcde89f5e15b29f39ce2db65b543 (diff) |
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: Ic90647cc4da716b54b00520b683cee027a664c22
Diffstat (limited to 'svx/source/svdraw/svdpage.cxx')
-rw-r--r-- | svx/source/svdraw/svdpage.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx index 84bad358cc50..590f847a62cb 100644 --- a/svx/source/svdraw/svdpage.cxx +++ b/svx/source/svdraw/svdpage.cxx @@ -604,8 +604,8 @@ SdrObject* SdrObjList::SetObjectOrdNum(size_t nOldObjNum, size_t nNewObjNum) const Rectangle& SdrObjList::GetAllObjSnapRect() const { if (bRectsDirty) { - ((SdrObjList*)this)->RecalcRects(); - ((SdrObjList*)this)->bRectsDirty=false; + const_cast<SdrObjList*>(this)->RecalcRects(); + const_cast<SdrObjList*>(this)->bRectsDirty=false; } return aSnapRect; } @@ -619,8 +619,8 @@ const Rectangle& SdrObjList::GetAllObjBoundRect() const // it's a step in the right direction. if (bRectsDirty || aOutRect.IsEmpty()) { - ((SdrObjList*)this)->RecalcRects(); - ((SdrObjList*)this)->bRectsDirty=false; + const_cast<SdrObjList*>(this)->RecalcRects(); + const_cast<SdrObjList*>(this)->bRectsDirty=false; } return aOutRect; } |