diff options
author | Neil <nyamatongwe@gmail.com> | 2022-10-19 15:23:02 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-10-19 15:23:02 +1100 |
commit | b8ba34f03cb1808aa47dce0fe06e81d372a9702c (patch) | |
tree | 53da405d165ec56538cb9356d4afca10029b9a3a /src/Editor.cxx | |
parent | e30c35b1efc7be12ea10d02028b11bf4eb6e2cea (diff) | |
download | scintilla-mirror-b8ba34f03cb1808aa47dce0fe06e81d372a9702c.tar.gz |
Fix noexcept warnings from recent changes.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index a227c5c47..2e1467e32 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5787,14 +5787,14 @@ Sci::Position Editor::GetStyledText(char *buffer, Sci::Position cpMin, Sci::Posi Sci::Position iPlace = 0; for (Sci::Position iChar = cpMin; iChar < cpMax; iChar++) { buffer[iPlace++] = pdoc->CharAt(iChar); - buffer[iPlace++] = pdoc->StyleAt(iChar); + buffer[iPlace++] = pdoc->StyleAtNoExcept(iChar); } buffer[iPlace] = '\0'; buffer[iPlace + 1] = '\0'; return iPlace; } -Sci::Position Editor::GetTextRange(char *buffer, Sci::Position cpMin, Sci::Position cpMax) const noexcept { +Sci::Position Editor::GetTextRange(char *buffer, Sci::Position cpMin, Sci::Position cpMax) const { const Sci::Position cpEnd = (cpMax == -1) ? pdoc->Length() : cpMax; PLATFORM_ASSERT(cpEnd <= pdoc->Length()); const Sci::Position len = cpEnd - cpMin; // No -1 as cpMin and cpMax are referring to inter character positions |