From b3c9933350e5c6b9d06a72034e681cecae52dc4b Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 16 Jul 2020 19:55:15 +1000 Subject: Add constexpr, const, noexcept and make other small improvements to lexlib. --- lexlib/LexAccessor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexlib/LexAccessor.h') diff --git a/lexlib/LexAccessor.h b/lexlib/LexAccessor.h index e11535bf7..658eb6e6d 100644 --- a/lexlib/LexAccessor.h +++ b/lexlib/LexAccessor.h @@ -77,7 +77,7 @@ public: } return buf[position - startPos]; } - IDocument *MultiByteAccess() const { + IDocument *MultiByteAccess() const noexcept { return pAccess; } /** Safe version of operator[], returning a defined value for invalid position. */ -- cgit v1.2.3