From 815e3f5a79e3ad01ef3712ea01d2c49e6ee352a1 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Sun, 15 Dec 2024 09:14:12 +1100 Subject: Feature [feature-requests:#1537]. Use noexcept where possible. --- src/AutoComplete.cxx | 4 ++-- src/AutoComplete.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/AutoComplete.cxx b/src/AutoComplete.cxx index 3c7c98cee..caf396ba2 100644 --- a/src/AutoComplete.cxx +++ b/src/AutoComplete.cxx @@ -93,7 +93,7 @@ bool AutoComplete::IsFillUpChar(char ch) const noexcept { return ch && (fillUpChars.find(ch) != std::string::npos); } -void AutoComplete::SetSeparator(char separator_) { +void AutoComplete::SetSeparator(char separator_) noexcept { separator = separator_; } @@ -101,7 +101,7 @@ char AutoComplete::GetSeparator() const noexcept { return separator; } -void AutoComplete::SetTypesep(char separator_) { +void AutoComplete::SetTypesep(char separator_) noexcept { typesep = separator_; } diff --git a/src/AutoComplete.h b/src/AutoComplete.h index ce8edd1d6..378232a84 100644 --- a/src/AutoComplete.h +++ b/src/AutoComplete.h @@ -66,11 +66,11 @@ public: bool IsFillUpChar(char ch) const noexcept; /// The separator character is used when interpreting the list in SetList - void SetSeparator(char separator_); + void SetSeparator(char separator_) noexcept; char GetSeparator() const noexcept; /// The typesep character is used for separating the word from the type - void SetTypesep(char separator_); + void SetTypesep(char separator_) noexcept; char GetTypesep() const noexcept; /// The list string contains a sequence of words separated by the separator character -- cgit v1.2.3