diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-21 23:27:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-21 23:27:33 +0300 |
commit | d181a2fb30ac73173fba851d4b2f7ca6f7d46ca0 (patch) | |
tree | 643c68086ee1258dbea0943f2928af626f3b9c81 /src/gui | |
parent | 5d6e4e9a5875d79173e9d2c867567dc26354240e (diff) | |
download | mv-d181a2fb30ac73173fba851d4b2f7ca6f7d46ca0.tar.gz mv-d181a2fb30ac73173fba851d4b2f7ca6f7d46ca0.tar.bz2 mv-d181a2fb30ac73173fba851d4b2f7ca6f7d46ca0.tar.xz mv-d181a2fb30ac73173fba851d4b2f7ca6f7d46ca0.zip |
Remove useless variables.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/inventorywindow.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp index 9fc6b6b38..27caa2019 100644 --- a/src/gui/windows/inventorywindow.cpp +++ b/src/gui/windows/inventorywindow.cpp @@ -934,9 +934,8 @@ InventoryWindow *InventoryWindow::getFirstVisible() if (((*it) != nullptr) && (*it)->isWindowVisible()) list.insert(*it); } - InventoryWindow *const window = dynamic_cast<InventoryWindow*>( + return dynamic_cast<InventoryWindow*>( windowContainer->findFirstWidget(list)); - return window; } void InventoryWindow::nextTab() |