aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZufu Liu <unknown>2024-12-15 09:14:12 +1100
committerZufu Liu <unknown>2024-12-15 09:14:12 +1100
commit815e3f5a79e3ad01ef3712ea01d2c49e6ee352a1 (patch)
tree32b7a86cac4a80abfcaffbe2e2857014cffca349
parent8ee5394c1099a410f81e7218cee4a1c6ffaecbdd (diff)
downloadscintilla-mirror-815e3f5a79e3ad01ef3712ea01d2c49e6ee352a1.tar.gz
Feature [feature-requests:#1537]. Use noexcept where possible.
-rw-r--r--src/AutoComplete.cxx4
-rw-r--r--src/AutoComplete.h4
2 files changed, 4 insertions, 4 deletions
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