diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-16 20:43:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-16 20:43:05 +0300 |
commit | 381a271357c727df838ffe7958bf6ae16fd69804 (patch) | |
tree | 8ad1d9e05d7bc6b402ca31711309b649bd6eff8a /src/gui/npcdialog.cpp | |
parent | 44ca1b1c650e08e45de738b19513136e71e40349 (diff) | |
download | plus-381a271357c727df838ffe7958bf6ae16fd69804.tar.gz plus-381a271357c727df838ffe7958bf6ae16fd69804.tar.bz2 plus-381a271357c727df838ffe7958bf6ae16fd69804.tar.xz plus-381a271357c727df838ffe7958bf6ae16fd69804.zip |
fix code style.
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r-- | src/gui/npcdialog.cpp | 11 |
1 files changed, 9 insertions, 2 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; } |