diff options
author | Moonchild <moonchild@palemoon.org> | 2023-11-11 14:27:03 +0100 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-11-11 14:27:03 +0100 |
commit | 734f0957fb8bc06ae6e5105d878f1b7007ce8b5d (patch) | |
tree | df73c5d270de365b4035aff74ef703c9f922bd30 /widget | |
parent | c789882a294d29b3e5450a972ad67c4839c75e23 (diff) | |
download | uxp-734f0957fb8bc06ae6e5105d878f1b7007ce8b5d.tar.gz |
Issue #2343 - replace MOZ_FALLTHROUGH with [[fallthrough]]
Basically a S&R. Removed the macro and adjusts IDL codegen accordingly.
Diffstat (limited to 'widget')
-rw-r--r-- | widget/GfxInfoBase.cpp | 2 | ||||
-rw-r--r-- | widget/WidgetEventImpl.cpp | 2 | ||||
-rw-r--r-- | widget/gtk/nsNativeThemeGTK.cpp | 4 | ||||
-rw-r--r-- | widget/windows/KeyboardLayout.cpp | 2 | ||||
-rw-r--r-- | widget/windows/nsWindow.cpp | 4 |
5 files changed, 7 insertions, 7 deletions
diff --git a/widget/GfxInfoBase.cpp b/widget/GfxInfoBase.cpp index 9eefa6f372..a9658bbc06 100644 --- a/widget/GfxInfoBase.cpp +++ b/widget/GfxInfoBase.cpp @@ -984,7 +984,7 @@ GfxInfoBase::EvaluateDownloadedBlacklist(nsTArray<GfxDriverInfo>& aDriverInfo) } else { RemovePrefForDriverVersion(); } - MOZ_FALLTHROUGH; + [[fallthrough]]; case nsIGfxInfo::FEATURE_BLOCKED_MISMATCHED_VERSION: case nsIGfxInfo::FEATURE_BLOCKED_DEVICE: diff --git a/widget/WidgetEventImpl.cpp b/widget/WidgetEventImpl.cpp index 59c80672b1..f529ec7b1a 100644 --- a/widget/WidgetEventImpl.cpp +++ b/widget/WidgetEventImpl.cpp @@ -382,7 +382,7 @@ WidgetEvent::IsAllowedToDispatchDOMEvent() const if (mMessage == eMouseTouchDrag) { return false; } - MOZ_FALLTHROUGH; + [[fallthrough]]; case ePointerEventClass: // We want synthesized mouse moves to cause mouseover and mouseout // DOM events (EventStateManager::PreHandleEvent), but not mousemove diff --git a/widget/gtk/nsNativeThemeGTK.cpp b/widget/gtk/nsNativeThemeGTK.cpp index cb4e7debf2..cfb9ef7eda 100644 --- a/widget/gtk/nsNativeThemeGTK.cpp +++ b/widget/gtk/nsNativeThemeGTK.cpp @@ -1306,7 +1306,7 @@ nsNativeThemeGTK::GetWidgetBorder(nsDeviceContext* aContext, nsIFrame* aFrame, // will need to fall through and use the default case as before. if (IsRegularMenuItem(aFrame)) break; - MOZ_FALLTHROUGH; + [[fallthrough]]; default: { WidgetNodeType gtkWidgetType; @@ -1847,7 +1847,7 @@ nsNativeThemeGTK::ThemeSupportsWidget(nsPresContext* aPresContext, if (aFrame && aFrame->GetWritingMode().IsVertical()) { return false; } - MOZ_FALLTHROUGH; + [[fallthrough]]; case NS_THEME_BUTTON: case NS_THEME_BUTTON_FOCUS: diff --git a/widget/windows/KeyboardLayout.cpp b/widget/windows/KeyboardLayout.cpp index b4801fa19c..c7bb60a675 100644 --- a/widget/windows/KeyboardLayout.cpp +++ b/widget/windows/KeyboardLayout.cpp @@ -1890,7 +1890,7 @@ NativeKey::InitKeyEvent(WidgetKeyboardEvent& aKeyEvent, if (mCharMessageHasGone) { aKeyEvent.PreventDefaultBeforeDispatch(); } - MOZ_FALLTHROUGH; + [[fallthrough]]; case eKeyDownOnPlugin: aKeyEvent.mKeyCode = mDOMKeyCode; // Unique id for this keydown event and its associated keypress. diff --git a/widget/windows/nsWindow.cpp b/widget/windows/nsWindow.cpp index 295518ea26..c636d38700 100644 --- a/widget/windows/nsWindow.cpp +++ b/widget/windows/nsWindow.cpp @@ -3525,7 +3525,7 @@ void* nsWindow::GetNativeData(uint32_t aDataType) if (pseudoIMEContext) { return pseudoIMEContext; } - MOZ_FALLTHROUGH; + [[fallthrough]]; } case NS_NATIVE_TSF_THREAD_MGR: case NS_NATIVE_TSF_CATEGORY_MGR: @@ -7660,7 +7660,7 @@ nsWindow::DealWithPopups(HWND aWnd, UINT aMessage, // compatibility mouse events will do it instead. return false; } - MOZ_FALLTHROUGH; + [[fallthrough]]; case WM_LBUTTONDOWN: case WM_RBUTTONDOWN: case WM_MBUTTONDOWN: |