diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2011-11-06 13:16:47 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2011-11-06 13:16:47 +0400 |
commit | 0cf754f5ca356c2d93f7ebf8523b2dc2246e4763 (patch) | |
tree | e3e7865a6d78f8a0a27684c3bfa4c083694a37c6 /cui/source/dialogs | |
parent | 59829f4fd20f4238941123412423caa76e8be1a6 (diff) |
cppcheck: drop redundant checks
Diffstat (limited to 'cui/source/dialogs')
-rw-r--r-- | cui/source/dialogs/scriptdlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx index 8c0a3730667c..d7f3dd284a37 100644 --- a/cui/source/dialogs/scriptdlg.cxx +++ b/cui/source/dialogs/scriptdlg.cxx @@ -1578,8 +1578,8 @@ IMPL_LINK( SvxScriptErrorDialog, ShowDialog, ::rtl::OUString*, pMessage ) pBox->SetText( CUI_RES( RID_SVXSTR_ERROR_TITLE ) ); pBox->Execute(); - if ( pBox ) delete pBox; - if ( pMessage ) delete pMessage; + delete pBox; + delete pMessage; return 0; } |