diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:30:53 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:33:36 +0100 |
commit | 98ce4ac4017ac04d7cde9c94273a558c969586b9 (patch) | |
tree | e895588b75f11c19bb758dafa0e7949f84543f43 /sfx2/source/doc/objembed.cxx | |
parent | f474984cd7b8a29f410a686d540859226039bfe0 (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.cxx | 2 |
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; } |