diff options
author | Matteo Casalin <matteo.casalin@poste.it> | 2011-12-18 21:48:03 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@poste.it> | 2011-12-25 00:16:31 +0100 |
commit | 7a11e6106bf3080357ea486500d786010b0b5693 (patch) | |
tree | bc1fcdb730830329ecf9c10d512fc75cbec59ad3 /svtools/source | |
parent | 791b1e941ecdbf176831857e85fcd48720ae45b4 (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/source')
-rw-r--r-- | svtools/source/control/valueset.cxx | 10 |
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; } // ----------------------------------------------------------------------- |