diff options
author | Neil <nyamatongwe@gmail.com> | 2021-05-28 14:46:21 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-05-28 14:46:21 +1000 |
commit | c9b2423aaed459c68dd8f43b1de0edee4eb287c8 (patch) | |
tree | f9bfdfa908e5a0a242fb2a00f1ed988682f568c5 /src/EditModel.cxx | |
parent | a20684909b6edadae8e0c8c9ebc0d15d7fc128ba (diff) | |
download | scintilla-mirror-c9b2423aaed459c68dd8f43b1de0edee4eb287c8.tar.gz |
Better exception handling for noexcept methods. More accurate noexcept marking.
Diffstat (limited to 'src/EditModel.cxx')
-rw-r--r-- | src/EditModel.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/EditModel.cxx b/src/EditModel.cxx index e9186a026..5dd3cc87d 100644 --- a/src/EditModel.cxx +++ b/src/EditModel.cxx @@ -82,7 +82,12 @@ EditModel::EditModel() : braces{} { } EditModel::~EditModel() { - pdoc->Release(); + try { + // This never throws but isn't marked noexcept for compatibility + pdoc->Release(); + } catch (...) { + // Ignore any exception + } pdoc = nullptr; } |