summaryrefslogtreecommitdiff
path: root/widget/cocoa/nsChildView.h
diff options
context:
space:
mode:
Diffstat (limited to 'widget/cocoa/nsChildView.h')
-rw-r--r--widget/cocoa/nsChildView.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/widget/cocoa/nsChildView.h b/widget/cocoa/nsChildView.h
index 7b998a6c5c..3ec93f1875 100644
--- a/widget/cocoa/nsChildView.h
+++ b/widget/cocoa/nsChildView.h
@@ -303,11 +303,10 @@ public:
nsChildView();
// nsIWidget interface
- virtual MOZ_MUST_USE nsresult Create(nsIWidget* aParent,
- nsNativeWidget aNativeParent,
- const LayoutDeviceIntRect& aRect,
- nsWidgetInitData* aInitData = nullptr)
- override;
+ [[nodiscard]] virtual nsresult Create(nsIWidget* aParent,
+ nsNativeWidget aNativeParent,
+ const LayoutDeviceIntRect& aRect,
+ nsWidgetInitData* aInitData = nullptr) override;
virtual void Destroy() override;