From 0f55757c602c7fec723f73e5820ec936d24cd826 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Sun, 19 Mar 2006 21:40:21 +0000 Subject: Removed some useless null pointer checks. --- src/gui/register.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/gui/register.cpp') diff --git a/src/gui/register.cpp b/src/gui/register.cpp index 39c918f7..c9b9daa7 100644 --- a/src/gui/register.cpp +++ b/src/gui/register.cpp @@ -198,11 +198,7 @@ RegisterDialog::action(const std::string& eventId) mConfirmField->setText(""); } - if (mWrongRegisterNotice) - { - delete mWrongRegisterNotice; - mWrongRegisterNotice = NULL; - } + delete mWrongRegisterNotice; mWrongRegisterNotice = new OkDialog("Error", errorMsg.str()); mWrongRegisterNotice->addActionListener(mWrongDataNoticeListener); } -- cgit v1.2.3-70-g09d2