summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2011-09-13 14:53:29 +0200
committerLuboš Luňák <l.lunak@suse.cz>2011-09-19 19:59:38 +0200
commitd808cb25b3f0c22f554ef7d60623abd0d7d84657 (patch)
tree1c7068dd92df187a40b980b8a49628b6c34e298f /vcl
parent581c45ba8eae7da1d474317fec3e5af578497a1f (diff)
delete does not need a NULL check
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/msgbox.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/vcl/source/window/msgbox.cxx b/vcl/source/window/msgbox.cxx
index 3f8c5683458f..e27cefe6eeb7 100644
--- a/vcl/source/window/msgbox.cxx
+++ b/vcl/source/window/msgbox.cxx
@@ -216,12 +216,9 @@ void MessBox::ImplLoadRes( const ResId& )
MessBox::~MessBox()
{
- if ( mpFixedText )
- delete mpFixedText;
- if ( mpFixedImage )
- delete mpFixedImage;
- if ( mpCheckBox )
- delete mpCheckBox;
+ delete mpFixedText;
+ delete mpFixedImage;
+ delete mpCheckBox;
}
// -----------------------------------------------------------------------