diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-19 21:40:21 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-19 21:40:21 +0000 |
commit | 0f55757c602c7fec723f73e5820ec936d24cd826 (patch) | |
tree | 6bd5d5eb110441ca6ddc4a01d90f4cf2d50af387 /src/gui/register.cpp | |
parent | 654d24e74c56d240b8d622840c135e22a029636d (diff) | |
download | mana-0f55757c602c7fec723f73e5820ec936d24cd826.tar.gz mana-0f55757c602c7fec723f73e5820ec936d24cd826.tar.bz2 mana-0f55757c602c7fec723f73e5820ec936d24cd826.tar.xz mana-0f55757c602c7fec723f73e5820ec936d24cd826.zip |
Removed some useless null pointer checks.
Diffstat (limited to 'src/gui/register.cpp')
-rw-r--r-- | src/gui/register.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
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); } |