aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
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
commit46024f0975c0f48cfff8986a5ff71aa4e3dbbee0 (patch)
treed73e1068f64bd9a6116db1bb23e6b917ae48bec5 /src/Document.cxx
parent89206d94f9095ab9e3c9a8c0e5f3556c2d4b7333 (diff)
downloadscintilla-mirror-46024f0975c0f48cfff8986a5ff71aa4e3dbbee0.tar.gz
Use noexcept method to preserve noexcept.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r--src/Document.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 222a8bc31..2852e1097 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -608,7 +608,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)