aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-04-20 09:17:16 +1000
committerNeil <nyamatongwe@gmail.com>2018-04-20 09:17:16 +1000
commit4b46a6a409ac3099cfea46371af34434087489f1 (patch)
tree4481984acd66d1342e9143bfe6335a85e82844d0 /src
parent5fbd69640016de7c52bc946b5a4b6eec38364106 (diff)
downloadscintilla-mirror-4b46a6a409ac3099cfea46371af34434087489f1.tar.gz
Feature [feature-requests:#1215]. const in AutoComplete.
Diffstat (limited to 'src')
-rw-r--r--src/AutoComplete.cxx10
-rw-r--r--src/AutoComplete.h10
2 files changed, 10 insertions, 10 deletions
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;
}
diff --git a/src/AutoComplete.h b/src/AutoComplete.h
index ed14f1776..6440c13d4 100644
--- a/src/AutoComplete.h
+++ b/src/AutoComplete.h
@@ -45,7 +45,7 @@ public:
~AutoComplete();
/// Is the auto completion list displayed?
- bool Active() const;
+ bool Active() const noexcept;
/// Display the auto completion list positioned to be near a character position
void Start(Window &parent, int ctrlID, Sci::Position position, Point location,
@@ -53,19 +53,19 @@ public:
/// The stop chars are characters which, when typed, cause the auto completion list to disappear
void SetStopChars(const char *stopChars_);
- bool IsStopChar(char ch);
+ bool IsStopChar(char ch) const noexcept;
/// The fillup chars are characters which, when typed, fill up the selected word
void SetFillUpChars(const char *fillUpChars_);
- bool IsFillUpChar(char ch);
+ bool IsFillUpChar(char ch) const noexcept;
/// The separator character is used when interpreting the list in SetList
void SetSeparator(char separator_);
- char GetSeparator() const;
+ char GetSeparator() const noexcept;
/// The typesep character is used for separating the word from the type
void SetTypesep(char separator_);
- char GetTypesep() const;
+ char GetTypesep() const noexcept;
/// The list string contains a sequence of words separated by the separator character
void SetList(const char *list);