diff options
author | Neil <nyamatongwe@gmail.com> | 2021-03-17 12:44:47 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-03-17 12:44:47 +1100 |
commit | 907c32f8149ec13c39c90424cfed018b2b1eac87 (patch) | |
tree | 7f557df7306cdbf0c2fc623ef271826c473ee007 /src/Platform.h | |
parent | b36983d5f4550bb14afe0e557831b9004dad7409 (diff) | |
download | scintilla-mirror-907c32f8149ec13c39c90424cfed018b2b1eac87.tar.gz |
Mark Window::Destroy, ListBox::Clear, and Menu::Destroy as noexcept since
destroying state should not throw.
Diffstat (limited to 'src/Platform.h')
-rw-r--r-- | src/Platform.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Platform.h b/src/Platform.h index 64c5610c4..0ea086393 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -247,7 +247,7 @@ public: virtual ~Window(); WindowID GetID() const noexcept { return wid; } bool Created() const noexcept { return wid != nullptr; } - void Destroy(); + void Destroy() noexcept; PRectangle GetPosition() const; void SetPosition(PRectangle rc); void SetPositionRelative(PRectangle rc, const Window *relativeTo); @@ -293,7 +293,7 @@ public: virtual int GetVisibleRows() const=0; virtual PRectangle GetDesiredRect()=0; virtual int CaretFromEdge()=0; - virtual void Clear()=0; + virtual void Clear() noexcept=0; virtual void Append(char *s, int type = -1)=0; virtual int Length()=0; virtual void Select(int n)=0; @@ -316,7 +316,7 @@ public: Menu() noexcept; MenuID GetID() const noexcept { return mid; } void CreatePopUp(); - void Destroy(); + void Destroy() noexcept; void Show(Point pt, Window &w); }; |