From b047c81396af14e5497d969b37b1df9d67d09d17 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 18 Mar 2021 23:31:59 +1100 Subject: Make Surface::Release and callers (where possible) noexcept. --- win32/PlatWin.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'win32') diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 2ad3e2f7b..aea7cac98 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -475,7 +475,7 @@ public: void Init(SurfaceID sid, WindowID wid) override; void InitPixMap(int width, int height, Surface *surface_, WindowID wid) override; - void Release() override; + void Release() noexcept override; bool Initialised() override; void PenColour(ColourDesired fore) override; int LogPixelsY() override; @@ -554,7 +554,7 @@ void SurfaceGDI::Clear() noexcept { } } -void SurfaceGDI::Release() { +void SurfaceGDI::Release() noexcept { Clear(); } @@ -1150,7 +1150,7 @@ public: void Init(SurfaceID sid, WindowID wid) override; void InitPixMap(int width, int height, Surface *surface_, WindowID wid) override; - void Release() override; + void Release() noexcept override; bool Initialised() override; HRESULT FlushDrawing(); @@ -1239,7 +1239,7 @@ void SurfaceD2D::Clear() noexcept { pBitmapRenderTarget = nullptr; } -void SurfaceD2D::Release() { +void SurfaceD2D::Release() noexcept { Clear(); } -- cgit v1.2.3