mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-28 06:21:25 +00:00
Add { } in switch-case to define vars inside
This is required if a new case is added below in the future to avoid compiler errors. It's better to always use { } if we're going to define local variables for the case.
This commit is contained in:
parent
0edc4e16ed
commit
cfc92e7cdb
@ -153,7 +153,7 @@ bool ButtonBase::onProcessMessage(Message* msg)
|
||||
}
|
||||
break;
|
||||
|
||||
case kCheckWidget:
|
||||
case kCheckWidget: {
|
||||
KeyMessage* keymsg = static_cast<KeyMessage*>(msg);
|
||||
KeyScancode scancode = keymsg->scancode();
|
||||
const bool mnemonicPressed =
|
||||
@ -171,6 +171,7 @@ bool ButtonBase::onProcessMessage(Message* msg)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case kMouseDownMessage:
|
||||
|
Loading…
Reference in New Issue
Block a user