aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-18 23:31:59 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-18 23:31:59 +1100
commitb047c81396af14e5497d969b37b1df9d67d09d17 (patch)
tree4b7eab66346c57d36314e3fd7566a610c2dfc66e /cocoa
parent088336e91cb2771acd435bcd4646373420f62484 (diff)
downloadscintilla-mirror-b047c81396af14e5497d969b37b1df9d67d09d17.tar.gz
Make Surface::Release and callers (where possible) noexcept.
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/PlatCocoa.h2
-rw-r--r--cocoa/PlatCocoa.mm2
2 files changed, 2 insertions, 2 deletions
diff --git a/cocoa/PlatCocoa.h b/cocoa/PlatCocoa.h
index 4d006b1ff..0117fcc15 100644
--- a/cocoa/PlatCocoa.h
+++ b/cocoa/PlatCocoa.h
@@ -78,7 +78,7 @@ public:
void InitPixMap(int width, int height, Surface *surface_, WindowID wid) override;
CGContextRef GetContext() { return gc; }
- void Release() override;
+ void Release() noexcept override;
bool Initialised() override;
void PenColour(ColourDesired fore) override;
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm
index 4eb3bfd1b..2f8778d11 100644
--- a/cocoa/PlatCocoa.mm
+++ b/cocoa/PlatCocoa.mm
@@ -365,7 +365,7 @@ void SurfaceImpl::Clear() {
//--------------------------------------------------------------------------------------------------
-void SurfaceImpl::Release() {
+void SurfaceImpl::Release() noexcept {
Clear();
}