aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-17 12:44:47 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-17 12:44:47 +1100
commit907c32f8149ec13c39c90424cfed018b2b1eac87 (patch)
tree7f557df7306cdbf0c2fc623ef271826c473ee007 /cocoa
parentb36983d5f4550bb14afe0e557831b9004dad7409 (diff)
downloadscintilla-mirror-907c32f8149ec13c39c90424cfed018b2b1eac87.tar.gz
Mark Window::Destroy, ListBox::Clear, and Menu::Destroy as noexcept since
destroying state should not throw.
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/PlatCocoa.mm8
1 files changed, 4 insertions, 4 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm
index 82dd3b030..eb7a93ef1 100644
--- a/cocoa/PlatCocoa.mm
+++ b/cocoa/PlatCocoa.mm
@@ -1673,7 +1673,7 @@ public:
int GetVisibleRows() const override;
PRectangle GetDesiredRect() override;
int CaretFromEdge() override;
- void Clear() override;
+ void Clear() noexcept override;
void Append(char *s, int type = -1) override;
int Length() override;
void Select(int n) override;
@@ -1820,7 +1820,7 @@ void ListBoxImpl::ReleaseViews() {
ds = nil;
}
-void ListBoxImpl::Clear() {
+void ListBoxImpl::Clear() noexcept {
maxItemWidth = 0;
maxIconWidth = 0;
ld.Clear();
@@ -1975,7 +1975,7 @@ ListBox *ListBox::Allocate() {
//--------------------------------------------------------------------------------------------------
-void Window::Destroy() {
+void Window::Destroy() noexcept {
ListBoxImpl *listbox = dynamic_cast<ListBoxImpl *>(this);
if (listbox) {
listbox->ReleaseViews();
@@ -2025,7 +2025,7 @@ void Menu::CreatePopUp() {
//--------------------------------------------------------------------------------------------------
-void Menu::Destroy() {
+void Menu::Destroy() noexcept {
CFBridgingRelease(mid);
mid = nullptr;
}