summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-18 23:07:40 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-18 23:07:40 +0300
commitdc6568962a32ddb6f231c629e7ad3373e9086b6c (patch)
tree744e9f2507c6113e1ba941a11b16e4923aa00858 /src/gui
parent6419386c4c382753509425826ee609dd07d4ae72 (diff)
downloadmanaverse-dc6568962a32ddb6f231c629e7ad3373e9086b6c.tar.gz
manaverse-dc6568962a32ddb6f231c629e7ad3373e9086b6c.tar.bz2
manaverse-dc6568962a32ddb6f231c629e7ad3373e9086b6c.tar.xz
manaverse-dc6568962a32ddb6f231c629e7ad3373e9086b6c.zip
remove useless conditions.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/inventorywindow.cpp2
-rw-r--r--src/gui/logindialog.cpp1
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()
{
}