summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objembed.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:30:53 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:36 +0100
commit98ce4ac4017ac04d7cde9c94273a558c969586b9 (patch)
treee895588b75f11c19bb758dafa0e7949f84543f43 /sfx2/source/doc/objembed.cxx
parentf474984cd7b8a29f410a686d540859226039bfe0 (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I59526bea5104def80e98902e4cf16e7bcfaa250c
Diffstat (limited to 'sfx2/source/doc/objembed.cxx')
-rw-r--r--sfx2/source/doc/objembed.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/objembed.cxx b/sfx2/source/doc/objembed.cxx
index c21bdc735466..8acc580b8bce 100644
--- a/sfx2/source/doc/objembed.cxx
+++ b/sfx2/source/doc/objembed.cxx
@@ -247,7 +247,7 @@ void SfxObjectShell::DoDraw_Impl( OutputDevice* pDev,
comphelper::EmbeddedObjectContainer& SfxObjectShell::GetEmbeddedObjectContainer() const
{
if ( !pImp->mpObjectContainer )
- pImp->mpObjectContainer = new comphelper::EmbeddedObjectContainer( ((SfxObjectShell*)this)->GetStorage(), GetModel() );
+ pImp->mpObjectContainer = new comphelper::EmbeddedObjectContainer( const_cast<SfxObjectShell*>(this)->GetStorage(), GetModel() );
return *pImp->mpObjectContainer;
}