summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:28:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:29 +0100
commit93cf4dcf443c839c90b19dd68ea64bc1f31a2d91 (patch)
treed8002276258b85ca3a25c73a50cab1d8ec98bc5d /drawinglayer
parent3b3c52ae87e86dc8841e67aeb220fbb1b6bfa271 (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I54b59f527e1e31e1949c1a0a52b0d8c603484cce
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx
index af59a4539321..ecf3bb257ce0 100644
--- a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx
+++ b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx
@@ -288,7 +288,7 @@ namespace drawinglayer
// at them. This is an error, but we need to work around this
const Size aMetaFilePrefSize(rMetafile.GetPrefSize());
const Size aMetaFileRealSize(
- const_cast< GDIMetaFile& >(rMetafile).GetBoundRect(
+ rMetafile.GetBoundRect(
*Application::GetDefaultDevice()).GetSize());
if(aMetaFileRealSize.getWidth() > aMetaFilePrefSize.getWidth()