From cf3c77c09d71cd4b1ebf8e7fe05a9485d182387e Mon Sep 17 00:00:00 2001 From: mitchell Date: Sun, 19 Jul 2020 19:58:28 -0400 Subject: Backport: Add constexpr, const, noexcept and make other small improvements to lexlib. Backport of changeset 8416:06a43e06a8e0. --- lexlib/WordList.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'lexlib/WordList.cxx') diff --git a/lexlib/WordList.cxx b/lexlib/WordList.cxx index 937f18948..460995daa 100644 --- a/lexlib/WordList.cxx +++ b/lexlib/WordList.cxx @@ -70,11 +70,11 @@ WordList::~WordList() { Clear(); } -WordList::operator bool() const { +WordList::operator bool() const noexcept { return len ? true : false; } -bool WordList::operator!=(const WordList &other) const { +bool WordList::operator!=(const WordList &other) const noexcept { if (len != other.len) return true; for (int i=0; i