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 | 46024f0975c0f48cfff8986a5ff71aa4e3dbbee0 (patch) | |
tree | d73e1068f64bd9a6116db1bb23e6b917ae48bec5 /src/Document.cxx | |
parent | 89206d94f9095ab9e3c9a8c0e5f3556c2d4b7333 (diff) | |
download | scintilla-mirror-46024f0975c0f48cfff8986a5ff71aa4e3dbbee0.tar.gz |
Use noexcept method to preserve noexcept.
Diffstat (limited to 'src/Document.cxx')
-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 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) |