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
master
David Capello 2022-08-31 12:28:52 -03:00
parent c79fb8b211
commit 8d79350b7c
1 changed files with 3 additions and 3 deletions

View File

@ -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()) {