aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-11-01 13:00:12 +1100
committerNeil <nyamatongwe@gmail.com>2019-11-01 13:00:12 +1100
commit0777bb261f970bfb6c7cde06544630df37024322 (patch)
tree3228eb3b1363f359c498474d21aa3448227cfbb1 /lexlib
parenta975005246dc972de1e61d866fd4dfe617c89ab2 (diff)
downloadscintilla-mirror-0777bb261f970bfb6c7cde06544630df37024322.tar.gz
Remove noexcept from allocating constructors as may throw on memory exhaustion.
Diffstat (limited to 'lexlib')
-rw-r--r--lexlib/CharacterCategory.cxx2
-rw-r--r--lexlib/CharacterCategory.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lexlib/CharacterCategory.cxx b/lexlib/CharacterCategory.cxx
index 35f636564..1e7ae8361 100644
--- a/lexlib/CharacterCategory.cxx
+++ b/lexlib/CharacterCategory.cxx
@@ -4016,7 +4016,7 @@ bool IsXidContinue(int character) {
}
}
-CharacterCategoryMap::CharacterCategoryMap() noexcept {
+CharacterCategoryMap::CharacterCategoryMap() {
Optimize(256);
}
diff --git a/lexlib/CharacterCategory.h b/lexlib/CharacterCategory.h
index d1ac39152..cd3320dd9 100644
--- a/lexlib/CharacterCategory.h
+++ b/lexlib/CharacterCategory.h
@@ -32,7 +32,7 @@ class CharacterCategoryMap {
private:
std::vector<unsigned char> dense;
public:
- CharacterCategoryMap() noexcept;
+ CharacterCategoryMap();
CharacterCategory CategoryFor(int character) const {
if (static_cast<size_t>(character) < dense.size()) {
return static_cast<CharacterCategory>(dense[character]);