diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-03-24 18:44:07 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-03-24 18:44:07 +0100 |
commit | 8b08aceb3d254909f2ee38f8c3c72162e3717717 (patch) | |
tree | 072bed3bb31a89e831b21fec6c9b4ac771d2ba6a /sd | |
parent | f9d0bfe98d631fb0a27f2827188ce4af6b755d3c (diff) |
coverity#704293 Logically dead code
Change-Id: I1e2ad99d19b647607805c7447f5f81f853d411a5
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/dlg/tpoption.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sd/source/ui/dlg/tpoption.cxx b/sd/source/ui/dlg/tpoption.cxx index e777320ad29f..aee8b264737c 100644 --- a/sd/source/ui/dlg/tpoption.cxx +++ b/sd/source/ui/dlg/tpoption.cxx @@ -77,7 +77,6 @@ SdTpOptionsSnap::~SdTpOptionsSnap() sal_Bool SdTpOptionsSnap::FillItemSet( SfxItemSet& rAttrs ) { SvxGridTabPage::FillItemSet(rAttrs); - SdOptionsSnapItem* pOptsItem = NULL; SdOptionsSnapItem aOptsItem( ATTR_OPTIONS_SNAP ); aOptsItem.GetOptionsSnap().SetSnapHelplines( aCbxSnapHelplines.IsChecked() ); @@ -91,8 +90,7 @@ sal_Bool SdTpOptionsSnap::FillItemSet( SfxItemSet& rAttrs ) aOptsItem.GetOptionsSnap().SetAngle( (sal_Int16) aMtrFldAngle.GetValue() ); aOptsItem.GetOptionsSnap().SetEliminatePolyPointLimitAngle( (sal_Int16) aMtrFldBezAngle.GetValue() ); - if( pOptsItem == NULL || !(aOptsItem == *pOptsItem) ) - rAttrs.Put( aOptsItem ); + rAttrs.Put( aOptsItem ); // we get a possible existing GridItem, this ensures that we do net set // some default values by accident |