From a2931677c6e28aad5ddd56d82e5a8814746dc5fd Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 11 Jun 2020 10:08:29 +1000 Subject: Use noexcept where safe and maintainable. --- src/CharClassify.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/CharClassify.cxx') 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; -- cgit v1.2.3