diff options
-rw-r--r-- | src/gui/selldialog.cpp | 2 | ||||
-rw-r--r-- | src/gui/setup_input.h | 5 | ||||
-rw-r--r-- | src/keyboardconfig.cpp | 1 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/selldialog.cpp b/src/gui/selldialog.cpp index 0e1b16de7..38355db03 100644 --- a/src/gui/selldialog.cpp +++ b/src/gui/selldialog.cpp @@ -179,7 +179,7 @@ void SellDialog::action(const gcn::ActionEvent &event) // The following actions require a valid item selection if (selectedItem == -1 || - selectedItem >= static_cast<int>(mShopItems->getNumberOfElements())) + selectedItem >= mShopItems->getNumberOfElements()) { return; } diff --git a/src/gui/setup_input.h b/src/gui/setup_input.h index 31bc5bcb1..79c7e73ff 100644 --- a/src/gui/setup_input.h +++ b/src/gui/setup_input.h @@ -24,12 +24,13 @@ #ifndef GUI_SETUP_INPUT_H #define GUI_SETUP_INPUT_H -#include "guichanfwd.h" - #include "gui/widgets/setuptab.h" #include <guichan/actionlistener.hpp> +#include <guichan/widgets/button.hpp> +#include <guichan/widgets/listbox.hpp> + #include <string> class Setup_Input : public SetupTab diff --git a/src/keyboardconfig.cpp b/src/keyboardconfig.cpp index 7ebe7c9b3..c9f4fef38 100644 --- a/src/keyboardconfig.cpp +++ b/src/keyboardconfig.cpp @@ -24,7 +24,6 @@ #include "configuration.h" #include "inputmanager.h" -#include "keyboarddata.h" #include "logger.h" #include "gui/sdlinput.h" |