diff options
| author | Neil <nyamatongwe@gmail.com> | 2021-02-04 13:20:22 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2021-02-04 13:20:22 +1100 |
| commit | f3bacf7b15d5f7f70065854815e571b6e44b815b (patch) | |
| tree | b3b6d65d85fe57508ca815c83510aa065e766a9e | |
| parent | a9d4faa8f8590de5d78b97e7aeea6dd13c903483 (diff) | |
| download | scintilla-mirror-f3bacf7b15d5f7f70065854815e571b6e44b815b.tar.gz | |
Make LexState constructor noexcept as it only calls its superclass constructor
which is noexcept.
| -rw-r--r-- | src/ScintillaBase.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index c69db0016..5e7fe8a15 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -536,7 +536,7 @@ namespace Scintilla { class LexState : public LexInterface { public: - explicit LexState(Document *pdoc_); + explicit LexState(Document *pdoc_) noexcept; void SetInstance(ILexer5 *instance_); // Deleted so LexState objects can not be copied. LexState(const LexState &) = delete; @@ -576,7 +576,7 @@ public: } -LexState::LexState(Document *pdoc_) : LexInterface(pdoc_) { +LexState::LexState(Document *pdoc_) noexcept : LexInterface(pdoc_) { } LexState::~LexState() { |
