summaryrefslogtreecommitdiff
path: root/widget/windows/nsWindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'widget/windows/nsWindow.h')
-rw-r--r--widget/windows/nsWindow.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/widget/windows/nsWindow.h b/widget/windows/nsWindow.h
index ec4a1f0192..4c6c7cb80d 100644
--- a/widget/windows/nsWindow.h
+++ b/widget/windows/nsWindow.h
@@ -98,11 +98,10 @@ public:
// nsIWidget interface
using nsWindowBase::Create; // for Create signature not overridden here
- 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;
NS_IMETHOD SetParent(nsIWidget *aNewParent) override;
virtual nsIWidget* GetParent(void) override;
@@ -136,7 +135,7 @@ public:
NS_IMETHOD SetFocus(bool aRaise) override;
virtual LayoutDeviceIntRect GetBounds() override;
virtual LayoutDeviceIntRect GetScreenBounds() override;
- virtual MOZ_MUST_USE nsresult GetRestoredBounds(LayoutDeviceIntRect& aRect) override;
+ [[nodiscard]] virtual nsresult GetRestoredBounds(LayoutDeviceIntRect& aRect) override;
virtual LayoutDeviceIntRect GetClientBounds() override;
virtual LayoutDeviceIntPoint GetClientOffset() override;
void SetBackgroundColor(const nscolor& aColor) override;