aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CharClassify.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-06-11 10:08:29 +1000
committerNeil <nyamatongwe@gmail.com>2020-06-11 10:08:29 +1000
commita2931677c6e28aad5ddd56d82e5a8814746dc5fd (patch)
treed8c143a1ebcb4e91717d241c38ec43bf1da9e6ac /src/CharClassify.cxx
parentb34e1a6efefd7b39f14daa867510b2e2d453a0bb (diff)
downloadscintilla-mirror-a2931677c6e28aad5ddd56d82e5a8814746dc5fd.tar.gz
Use noexcept where safe and maintainable.
Diffstat (limited to 'src/CharClassify.cxx')
-rw-r--r--src/CharClassify.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CharClassify.cxx b/src/CharClassify.cxx
index eb40a89c2..b5e2870f3 100644
--- a/src/CharClassify.cxx
+++ b/src/CharClassify.cxx
@@ -43,7 +43,7 @@ void CharClassify::SetCharClasses(const unsigned char *chars, cc newCharClass) {
}
}
-int CharClassify::GetCharsOfClass(cc characterClass, unsigned char *buffer) const {
+int CharClassify::GetCharsOfClass(cc characterClass, unsigned char *buffer) const noexcept {
// Get characters belonging to the given char class; return the number
// of characters (if the buffer is NULL, don't write to it).
int count = 0;