diff options
Diffstat (limited to 'svx/source/gallery2')
-rw-r--r-- | svx/source/gallery2/galbrws1.cxx | 2 | ||||
-rw-r--r-- | svx/source/gallery2/gallery1.cxx | 2 | ||||
-rw-r--r-- | svx/source/gallery2/galtheme.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/gallery2/galbrws1.cxx b/svx/source/gallery2/galbrws1.cxx index 607ae18c1a58..145dd97739cf 100644 --- a/svx/source/gallery2/galbrws1.cxx +++ b/svx/source/gallery2/galbrws1.cxx @@ -199,7 +199,7 @@ void GalleryBrowser1::ImplAdjustControls() void GalleryBrowser1::ImplFillExchangeData( const GalleryTheme* pThm, ExchangeData& rData ) { - rData.pTheme = (GalleryTheme*) pThm; + rData.pTheme = const_cast<GalleryTheme*>(pThm); rData.aEditedTitle = pThm->GetName(); try diff --git a/svx/source/gallery2/gallery1.cxx b/svx/source/gallery2/gallery1.cxx index 399f145a108c..32b14eb3e2d9 100644 --- a/svx/source/gallery2/gallery1.cxx +++ b/svx/source/gallery2/gallery1.cxx @@ -626,7 +626,7 @@ GalleryTheme* Gallery::ImplGetCachedTheme(const GalleryThemeEntry* pThemeEntry) { try { - pTheme = new GalleryTheme( this, (GalleryThemeEntry*) pThemeEntry ); + pTheme = new GalleryTheme( this, const_cast<GalleryThemeEntry*>(pThemeEntry) ); ReadGalleryTheme( *pIStm, *pTheme ); if( pIStm->GetError() ) diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx index c95be5bf51ff..f7dc2cb19cae 100644 --- a/svx/source/gallery2/galtheme.cxx +++ b/svx/source/gallery2/galtheme.cxx @@ -970,7 +970,7 @@ bool GalleryTheme::InsertModel( const FmFormModel& rModel, sal_uIntPtr nInsertPo if( xOStm.Is() && !xOStm->GetError() ) { SvMemoryStream aMemStm( 65535, 65535 ); - FmFormModel* pFormModel = (FmFormModel*) &rModel; + FmFormModel* pFormModel = const_cast<FmFormModel*>(&rModel); pFormModel->BurnInStyleSheetAttributes(); |