diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/npcdialog.cpp | 11 | ||||
-rw-r--r-- | src/gui/socialwindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/colorpage.cpp | 5 |
3 files changed, 12 insertions, 6 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp index 29d6383f9..576db564b 100644 --- a/src/gui/npcdialog.cpp +++ b/src/gui/npcdialog.cpp @@ -306,8 +306,7 @@ void NpcDialog::action(const gcn::ActionEvent &event) { std::string printText; // Text that will get printed // in the textbox - - switch(mInputState) + switch (mInputState) { case NPC_INPUT_LIST: { @@ -366,6 +365,7 @@ void NpcDialog::action(const gcn::ActionEvent &event) break; } + case NPC_INPUT_NONE: default: break; } @@ -393,6 +393,8 @@ void NpcDialog::action(const gcn::ActionEvent &event) case NPC_INPUT_ITEM: mInventory->clear(); break; + case NPC_INPUT_NONE: + case NPC_INPUT_LIST: default: break; } @@ -414,6 +416,8 @@ void NpcDialog::action(const gcn::ActionEvent &event) break; case NPC_INPUT_STRING: case NPC_INPUT_INTEGER: + case NPC_INPUT_LIST: + case NPC_INPUT_NONE: default: clearRows(); break; @@ -430,6 +434,8 @@ void NpcDialog::action(const gcn::ActionEvent &event) break; case NPC_INPUT_STRING: case NPC_INPUT_INTEGER: + case NPC_INPUT_NONE: + case NPC_INPUT_LIST: default: Net::getNpcHandler()->listInput(mNpcId, 255); break; @@ -785,6 +791,7 @@ void NpcDialog::buildLayout() placeItemInputControls(); break; + case NPC_INPUT_NONE: default: break; } diff --git a/src/gui/socialwindow.cpp b/src/gui/socialwindow.cpp index 08e4b6f44..c182df9ab 100644 --- a/src/gui/socialwindow.cpp +++ b/src/gui/socialwindow.cpp @@ -261,7 +261,7 @@ public: mConfirmDialog->addActionListener(this); } - void buildCounter(const int online0 A_UNUSED, const int total0 A_UNUSED) + void buildCounter(const int online0, const int total0) { if (online0 || total0) { diff --git a/src/gui/widgets/colorpage.cpp b/src/gui/widgets/colorpage.cpp index bd37dbeeb..3673f9e9f 100644 --- a/src/gui/widgets/colorpage.cpp +++ b/src/gui/widgets/colorpage.cpp @@ -32,14 +32,13 @@ ColorPage::ColorPage(const Widget2 *const widget, gcn::ListModel *const listModel, const std::string &skin) : ListBox(widget, listModel, skin), - mItemPadding(mSkin ? mSkin->getOption("itemPadding") : 1) + mItemPadding(mSkin ? mSkin->getOption("itemPadding") : 1), + mRowHeight(13) { // addMouseListener(this); const gcn::Font *const font = getFont(); if (font) mRowHeight = font->getHeight() + 2 * mItemPadding; - else - mRowHeight = 13; adjustSize(); } |