diff options
| author | Neil <nyamatongwe@gmail.com> | 2021-03-18 23:31:59 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2021-03-18 23:31:59 +1100 |
| commit | b047c81396af14e5497d969b37b1df9d67d09d17 (patch) | |
| tree | 4b7eab66346c57d36314e3fd7566a610c2dfc66e /win32 | |
| parent | 088336e91cb2771acd435bcd4646373420f62484 (diff) | |
| download | scintilla-mirror-b047c81396af14e5497d969b37b1df9d67d09d17.tar.gz | |
Make Surface::Release and callers (where possible) noexcept.
Diffstat (limited to 'win32')
| -rw-r--r-- | win32/PlatWin.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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(); } |
