diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-18 23:07:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-18 23:07:40 +0300 |
commit | dc6568962a32ddb6f231c629e7ad3373e9086b6c (patch) | |
tree | 744e9f2507c6113e1ba941a11b16e4923aa00858 /src/gui | |
parent | 6419386c4c382753509425826ee609dd07d4ae72 (diff) | |
download | mv-dc6568962a32ddb6f231c629e7ad3373e9086b6c.tar.gz mv-dc6568962a32ddb6f231c629e7ad3373e9086b6c.tar.bz2 mv-dc6568962a32ddb6f231c629e7ad3373e9086b6c.tar.xz mv-dc6568962a32ddb6f231c629e7ad3373e9086b6c.zip |
remove useless conditions.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/inventorywindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/logindialog.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index e497f5782..a1c4287c8 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -661,7 +661,7 @@ void InventoryWindow::updateButtons(const Item *item) if (mUseButton) { - if (item && item->isEquipment()) + if (item->isEquipment()) { if (item->isEquipped()) { diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp index 3481dddc7..c872b54a5 100644 --- a/src/gui/logindialog.cpp +++ b/src/gui/logindialog.cpp @@ -54,6 +54,7 @@ std::string LoginDialog::savedPasswordKey(""); struct OpenUrlListener : public gcn::ActionListener { OpenUrlListener() : + gcn::ActionListener(), url() { } |