summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-06 16:20:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-07 14:05:50 +0200
commit483ba975b40d99c931c22a63fc85e190922406a7 (patch)
treef71c380c463b5fae90ead8f44b1a76d2dfee1ca0 /svx
parentc1e1806c9c01d2ac2f62f95dd79cbb2037bc87af (diff)
remove some unnecessary casts
Change-Id: I16aa2cdc3e92c3ea2661ebf0a528f72cbe193df9 Reviewed-on: https://gerrit.libreoffice.org/78716 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/gallery2/galtheme.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx
index b053b3e6a8d4..e02802525313 100644
--- a/svx/source/gallery2/galtheme.cxx
+++ b/svx/source/gallery2/galtheme.cxx
@@ -521,11 +521,11 @@ void GalleryTheme::Actualize( const Link<const INetURLObject&, void>& rActualize
std::unique_ptr<SgaObject> pNewObj;
if ( SgaObjKind::Inet == pEntry->eObjKind )
- pNewObj.reset(static_cast<SgaObject*>(new SgaObjectINet( aGraphic, aURL )));
+ pNewObj.reset(new SgaObjectINet( aGraphic, aURL ));
else if ( aGraphic.IsAnimated() )
- pNewObj.reset(static_cast<SgaObject*>(new SgaObjectAnim( aGraphic, aURL )));
+ pNewObj.reset(new SgaObjectAnim( aGraphic, aURL ));
else
- pNewObj.reset(static_cast<SgaObject*>(new SgaObjectBmp( aGraphic, aURL )));
+ pNewObj.reset(new SgaObjectBmp( aGraphic, aURL ));
if( !InsertObject( *pNewObj ) )
pEntry->mbDelete = true;
@@ -1066,13 +1066,13 @@ bool GalleryTheme::InsertURL(const INetURLObject& rURL, sal_uInt32 nInsertPos)
if( nImportRet != GalleryGraphicImportRet::IMPORT_NONE )
{
if ( aGraphic.IsAnimated() )
- pNewObj.reset(static_cast<SgaObject*>(new SgaObjectAnim( aGraphic, rURL )));
+ pNewObj.reset(new SgaObjectAnim( aGraphic, rURL ));
else
- pNewObj.reset(static_cast<SgaObject*>(new SgaObjectBmp( aGraphic, rURL )));
+ pNewObj.reset(new SgaObjectBmp( aGraphic, rURL ));
}
#if HAVE_FEATURE_AVMEDIA
else if( ::avmedia::MediaWindow::isMediaURL( rURL.GetMainURL( INetURLObject::DecodeMechanism::Unambiguous ), ""/*TODO?*/ ) )
- pNewObj.reset(static_cast<SgaObject*>(new SgaObjectSound( rURL )));
+ pNewObj.reset(new SgaObjectSound( rURL ));
#endif
if( pNewObj && InsertObject( *pNewObj, nInsertPos ) )
bRet = true;