summaryrefslogtreecommitdiff
path: root/starmath/source/rect.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:31:11 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:37 +0100
commit67c19855ab24004c29bb0741577432f0ed50d9bf (patch)
treea8c28cf2d101680f231645bc2219482bb17a0ff9 /starmath/source/rect.cxx
parentaf3cb5e85a54c5b9653f4757863b8ed15df8477b (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: Iee4396c5ac715e1b211c5fa6e1cb66b1e95e3f60
Diffstat (limited to 'starmath/source/rect.cxx')
-rw-r--r--starmath/source/rect.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx
index 53775b128a01..f0f5a750cb3e 100644
--- a/starmath/source/rect.cxx
+++ b/starmath/source/rect.cxx
@@ -608,7 +608,7 @@ bool SmGetGlyphBoundRect(const OutputDevice &rDev,
// get a device where 'OutputDevice::GetTextBoundRect' will be successful
OutputDevice *pGlyphDev;
if (rDev.GetOutDevType() != OUTDEV_PRINTER)
- pGlyphDev = (OutputDevice *) &rDev;
+ pGlyphDev = const_cast<OutputDevice *>(&rDev);
else
{
// since we format for the printer (where GetTextBoundRect will fail)