diff options
Diffstat (limited to 'widget/nsIWidget.h')
-rw-r--r-- | widget/nsIWidget.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/widget/nsIWidget.h b/widget/nsIWidget.h index fe21b67275..825db6f0cf 100644 --- a/widget/nsIWidget.h +++ b/widget/nsIWidget.h @@ -417,7 +417,7 @@ class nsIWidget : public nsISupports * @param aInitData data that is used for widget initialization * */ - virtual MOZ_MUST_USE nsresult + [[nodiscard]] virtual nsresult Create(nsIWidget* aParent, nsNativeWidget aNativeParent, const LayoutDeviceIntRect& aRect, @@ -431,7 +431,7 @@ class nsIWidget : public nsISupports * mapping is not straightforward or the native platform needs to use the * desktop pixel values directly. */ - virtual MOZ_MUST_USE nsresult + [[nodiscard]] virtual nsresult Create(nsIWidget* aParent, nsNativeWidget aNativeParent, const DesktopIntRect& aRect, @@ -890,7 +890,7 @@ class nsIWidget : public nsISupports * @param aRect On return it holds the x, y, width and height of * this widget. */ - virtual MOZ_MUST_USE nsresult + [[nodiscard]] virtual nsresult GetRestoredBounds(LayoutDeviceIntRect& aRect) = 0; /** |