GUI: Add Missing Switch Default Cases
These are flagged by GCC if -Wswitch-default is enabled.
This commit is contained in:
parent
904e58c35b
commit
30c366ee5d
15 changed files with 43 additions and 4 deletions
|
@ -489,12 +489,16 @@ void ConsoleDialog::insertIntoPrompt(const char* str) {
|
|||
void ConsoleDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) {
|
||||
switch (cmd) {
|
||||
case kSetPositionCmd:
|
||||
int newPos = (int)data + _linesPerPage - 1 + _firstLineInBuffer;
|
||||
if (newPos != _scrollLine) {
|
||||
_scrollLine = newPos;
|
||||
g_gui.scheduleTopDialogRedraw();
|
||||
{
|
||||
int newPos = (int)data + _linesPerPage - 1 + _firstLineInBuffer;
|
||||
if (newPos != _scrollLine) {
|
||||
_scrollLine = newPos;
|
||||
g_gui.scheduleTopDialogRedraw();
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue