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;
|
break;
|
||||||
|
|
||||||
case kCheckWidget:
|
case kCheckWidget: {
|
||||||
KeyMessage* keymsg = static_cast<KeyMessage*>(msg);
|
KeyMessage* keymsg = static_cast<KeyMessage*>(msg);
|
||||||
KeyScancode scancode = keymsg->scancode();
|
KeyScancode scancode = keymsg->scancode();
|
||||||
const bool mnemonicPressed =
|
const bool mnemonicPressed =
|
||||||
@ -169,6 +169,7 @@ bool ButtonBase::onProcessMessage(Message* msg)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user