diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-21 19:13:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-23 08:16:18 +0200 |
commit | d254f8a926d7d3ec4565d01f7a41ad3d9d7c9e87 (patch) | |
tree | 6f33b99f7344c3861972760428fb974073130d8d /svx/source/gallery2/galmisc.cxx | |
parent | 7c08c1af7116346f2dc0b669e231d82f4230a8c7 (diff) |
loplugin:singlevalfields improve unaryoperator
when we see a unaryoperator, unless it's one of a small set, we can
know (mostly) that the field will not be written.
there is still a small risk of false+ with code taking references
via conditional expressions.
Change-Id: I96fa808067576a50e5eaf425338e225b4e0bdd4e
Reviewed-on: https://gerrit.libreoffice.org/53263
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/gallery2/galmisc.cxx')
-rw-r--r-- | svx/source/gallery2/galmisc.cxx | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/svx/source/gallery2/galmisc.cxx b/svx/source/gallery2/galmisc.cxx index 6469a4a5bea9..5cc0006b9c7e 100644 --- a/svx/source/gallery2/galmisc.cxx +++ b/svx/source/gallery2/galmisc.cxx @@ -380,7 +380,6 @@ GalleryTransferable::GalleryTransferable( GalleryTheme* pTheme, sal_uInt32 nObje meObjectKind( mpTheme->GetObjectKind( nObjectPos ) ), mnObjectPos( nObjectPos ), mpGraphicObject( nullptr ), - mpImageMap( nullptr ), mpURL( nullptr ) { @@ -496,11 +495,6 @@ bool GalleryTransferable::GetData( const datatransfer::DataFlavor& rFlavor, cons { bRet = ( mxModelStream.is() && SetObject( mxModelStream.get(), 0, rFlavor ) ); } - else if( ( SotClipboardFormatId::SVIM == nFormat ) && mpImageMap ) - { - // TODO/MBA: do we need a BaseURL here?! - bRet = SetImageMap( *mpImageMap ); - } else if( ( SotClipboardFormatId::SIMPLE_FILE == nFormat ) && mpURL ) { bRet = SetString( mpURL->GetMainURL( INetURLObject::DecodeMechanism::NONE ), rFlavor ); @@ -552,8 +546,6 @@ void GalleryTransferable::ObjectReleased() mxModelStream.clear(); delete mpGraphicObject; mpGraphicObject = nullptr; - delete mpImageMap; - mpImageMap = nullptr; delete mpURL; mpURL = nullptr; } |