summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@poste.it>2011-12-18 21:48:03 +0100
committerMatteo Casalin <matteo.casalin@poste.it>2011-12-25 00:16:31 +0100
commit7a11e6106bf3080357ea486500d786010b0b5693 (patch)
treebc1fcdb730830329ecf9c10d512fc75cbec59ad3 /svtools
parent791b1e941ecdbf176831857e85fcd48720ae45b4 (diff)
Remove unneeded tests before delete
Pointers deleted in destructor are modified in remaining code, and already set to NULL when necessary.
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/valueset.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index abf575b6f1c1..576a091c1a0c 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -118,11 +118,8 @@ ValueSet::~ValueSet()
if (xComponent.is())
xComponent->dispose ();
- if ( mpScrBar )
- delete mpScrBar;
-
- if ( mpNoneItem )
- delete mpNoneItem;
+ delete mpScrBar;
+ delete mpNoneItem;
ImplDeleteItems();
delete mpImpl;
@@ -665,8 +662,7 @@ void ValueSet::Format()
mbFormat = sal_False;
// ScrollBar loeschen
- if ( pDelScrBar )
- delete pDelScrBar;
+ delete pDelScrBar;
}
// -----------------------------------------------------------------------