diff options
author | Neil <nyamatongwe@gmail.com> | 2018-05-16 16:59:10 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-05-16 16:59:10 +1000 |
commit | da7a7a8065eca0f848434652530482bde6b2030e (patch) | |
tree | 721d8b881b72639926056c46b4f3d40956063ada | |
parent | c24110790c646f40c307c88656c3eca7ed134e01 (diff) | |
download | scintilla-mirror-da7a7a8065eca0f848434652530482bde6b2030e.tar.gz |
Backport: Use noexcept method to preserve noexcept.
Backport of changeset 6956:beee37b055d6.
-rw-r--r-- | src/Document.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 54656ab03..312aa5c02 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -611,7 +611,7 @@ bool Document::InGoodUTF8(Sci::Position pos, Sci::Position &start, Sci::Position // pos too far from lead return false; unsigned char charBytes[UTF8MaxBytes] = {leadByte,0,0,0}; - for (Sci::Position b=1; b<widthCharBytes && ((start+b) < Length()); b++) + for (Sci::Position b=1; b<widthCharBytes && ((start+b) < cb.Length()); b++) charBytes[b] = cb.CharAt(start+b); const int utf8status = UTF8Classify(charBytes, widthCharBytes); if (utf8status & UTF8MaskInvalid) |