Kaydet (Commit) 7a11e610 authored tarafından Matteo Casalin's avatar Matteo Casalin

Remove unneeded tests before delete

Pointers deleted in destructor are modified in remaining code,
and already set to NULL when necessary.
üst 791b1e94
......@@ -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;
}
// -----------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment