const_cast: convert some C-style casts and remove some redundant ones

Change-Id: I54b59f527e1e31e1949c1a0a52b0d8c603484cce
This commit is contained in:
Stephan Bergmann
2015-03-26 15:28:24 +01:00
parent 3b3c52ae87
commit 93cf4dcf44

View File

@@ -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()