diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-17 13:14:50 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-23 08:08:56 +0200 |
commit | c45d3badc96481db093560b94d8bf51ead6bd17c (patch) | |
tree | 4bb6c9220678a12b327e46ca2acd01e77fc8e2c4 /sd/source/ui | |
parent | 003d0ccf902d2449320dd24119564565a384f365 (diff) |
new loplugin: commaoperator
Change-Id: I03f24e61f696b7619855e3c7010aa0d874e5a4ff
Diffstat (limited to 'sd/source/ui')
-rw-r--r-- | sd/source/ui/app/sdmod.cxx | 6 | ||||
-rw-r--r-- | sd/source/ui/app/sdxfer.cxx | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/sd/source/ui/app/sdmod.cxx b/sd/source/ui/app/sdmod.cxx index ce537a53c4de..add56e7f777b 100644 --- a/sd/source/ui/app/sdmod.cxx +++ b/sd/source/ui/app/sdmod.cxx @@ -126,8 +126,10 @@ void SdModule::Notify( SfxBroadcaster&, const SfxHint& rHint ) const SfxSimpleHint* pSimpleHint = dynamic_cast<const SfxSimpleHint*>(&rHint); if( pSimpleHint && pSimpleHint->GetId() == SFX_HINT_DEINITIALIZING ) { - delete pImpressOptions, pImpressOptions = nullptr; - delete pDrawOptions, pDrawOptions = nullptr; + delete pImpressOptions; + pImpressOptions = nullptr; + delete pDrawOptions; + pDrawOptions = nullptr; } } diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx index 3103f72cba86..aea5e11ca475 100644 --- a/sd/source/ui/app/sdxfer.cxx +++ b/sd/source/ui/app/sdxfer.cxx @@ -152,10 +152,14 @@ void SdTransferable::CreateObjectReplacement( SdrObject* pObj ) { if( pObj ) { - delete mpOLEDataHelper, mpOLEDataHelper = nullptr; - delete mpGraphic, mpGraphic = nullptr; - delete mpBookmark, mpBookmark = nullptr; - delete mpImageMap, mpImageMap = nullptr; + delete mpOLEDataHelper; + mpOLEDataHelper = nullptr; + delete mpGraphic; + mpGraphic = nullptr; + delete mpBookmark; + mpBookmark = nullptr; + delete mpImageMap; + mpImageMap = nullptr; if( nullptr!= dynamic_cast< const SdrOle2Obj* >( pObj ) ) { |