aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-05-16 16:59:10 +1000
committerNeil <nyamatongwe@gmail.com>2018-05-16 16:59:10 +1000
commitda7a7a8065eca0f848434652530482bde6b2030e (patch)
tree721d8b881b72639926056c46b4f3d40956063ada
parentc24110790c646f40c307c88656c3eca7ed134e01 (diff)
downloadscintilla-mirror-da7a7a8065eca0f848434652530482bde6b2030e.tar.gz
Backport: Use noexcept method to preserve noexcept.
Backport of changeset 6956:beee37b055d6.
-rw-r--r--src/Document.cxx2
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)