From 74a34523f9c17cdca12143d31a578d8565b1922d Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 20 Apr 2018 09:17:16 +1000 Subject: Backport: Feature [feature-requests:#1215]. const in AutoComplete. Backport of changeset 6712:3a277aadcf2a. --- src/AutoComplete.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/AutoComplete.cxx') diff --git a/src/AutoComplete.cxx b/src/AutoComplete.cxx index 966df7d47..fc4f947a5 100644 --- a/src/AutoComplete.cxx +++ b/src/AutoComplete.cxx @@ -49,7 +49,7 @@ AutoComplete::~AutoComplete() { } } -bool AutoComplete::Active() const { +bool AutoComplete::Active() const noexcept { return active; } @@ -70,7 +70,7 @@ void AutoComplete::SetStopChars(const char *stopChars_) { stopChars = stopChars_; } -bool AutoComplete::IsStopChar(char ch) { +bool AutoComplete::IsStopChar(char ch) const noexcept { return ch && (stopChars.find(ch) != std::string::npos); } @@ -78,7 +78,7 @@ void AutoComplete::SetFillUpChars(const char *fillUpChars_) { fillUpChars = fillUpChars_; } -bool AutoComplete::IsFillUpChar(char ch) { +bool AutoComplete::IsFillUpChar(char ch) const noexcept { return ch && (fillUpChars.find(ch) != std::string::npos); } @@ -86,7 +86,7 @@ void AutoComplete::SetSeparator(char separator_) { separator = separator_; } -char AutoComplete::GetSeparator() const { +char AutoComplete::GetSeparator() const noexcept { return separator; } @@ -94,7 +94,7 @@ void AutoComplete::SetTypesep(char separator_) { typesep = separator_; } -char AutoComplete::GetTypesep() const { +char AutoComplete::GetTypesep() const noexcept { return typesep; } -- cgit v1.2.3