mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-02 11:59:58 +00:00
Fix minor warning C4468 in MSVC using [[fallthrough]]
This is the warning C4468: 'fallthrough': attribute must be followed by a case label or a default label
This commit is contained in:
parent
c79fb8b211
commit
8d79350b7c
@ -53,7 +53,9 @@ bool Splitter::onProcessMessage(Message* msg)
|
||||
switch (msg->type()) {
|
||||
|
||||
case kMouseDownMessage:
|
||||
if (isEnabled()) {
|
||||
if (!isEnabled())
|
||||
break;
|
||||
else {
|
||||
Widget* c1, *c2;
|
||||
int x1, y1, x2, y2;
|
||||
int bar, click_bar;
|
||||
@ -102,8 +104,6 @@ bool Splitter::onProcessMessage(Message* msg)
|
||||
// Continue with motion message...
|
||||
[[fallthrough]];
|
||||
}
|
||||
else
|
||||
break;
|
||||
|
||||
case kMouseMoveMessage:
|
||||
if (hasCapture()) {
|
||||
|
Loading…
Reference in New Issue
Block a user