summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdoattr.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:31:47 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:38 +0100
commit5429049e3b8fd12e84aca83be7ca19e52920f672 (patch)
tree3b473be72f20a82357bd3f8ee7aa558b6b517e99 /svx/source/svdraw/svdoattr.cxx
parent0d05f417c3a7dcde89f5e15b29f39ce2db65b543 (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: Ic90647cc4da716b54b00520b683cee027a664c22
Diffstat (limited to 'svx/source/svdraw/svdoattr.cxx')
-rw-r--r--svx/source/svdraw/svdoattr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdoattr.cxx b/svx/source/svdraw/svdoattr.cxx
index 36ee5c1e4997..d96f92d1e218 100644
--- a/svx/source/svdraw/svdoattr.cxx
+++ b/svx/source/svdraw/svdoattr.cxx
@@ -95,8 +95,8 @@ const Rectangle& SdrAttrObj::GetSnapRect() const
{
if(bSnapRectDirty)
{
- ((SdrAttrObj*)this)->RecalcSnapRect();
- ((SdrAttrObj*)this)->bSnapRectDirty = false;
+ const_cast<SdrAttrObj*>(this)->RecalcSnapRect();
+ const_cast<SdrAttrObj*>(this)->bSnapRectDirty = false;
}
return maSnapRect;