Use attribute [[fallthrough]]

This commit is contained in:
Léo Lam
2017-12-25 23:01:00 +01:00
parent cb168f22d6
commit 6f84984b7b
4 changed files with 9 additions and 12 deletions

View File

@ -189,8 +189,8 @@ bool RenderWidget::event(QEvent* event)
case QEvent::MouseMove:
if (g_Config.bFreeLook)
OnFreeLookMouseMove(static_cast<QMouseEvent*>(event));
[[fallthrough]];
// [[fallthrough]]
case QEvent::MouseButtonPress:
if (!Settings::Instance().GetHideCursor() && isActiveWindow())
{