aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/RESearch.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2023-10-15 08:40:37 +1100
committerNeil <nyamatongwe@gmail.com>2023-10-15 08:40:37 +1100
commit0a00f1b52c9f05800192db71ccc28dfaed58729b (patch)
tree1ef515f84fa935f8c3c14c98824522b0aba32112 /src/RESearch.cxx
parent810883d3e039c92ce33372cc2e762615325b37f9 (diff)
downloadscintilla-mirror-0a00f1b52c9f05800192db71ccc28dfaed58729b.tar.gz
Use std::array for regex match positions as it will simplify copying.
This change set does not change behaviour.
Diffstat (limited to 'src/RESearch.cxx')
-rw-r--r--src/RESearch.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/RESearch.cxx b/src/RESearch.cxx
index 9a2981ffe..98399c925 100644
--- a/src/RESearch.cxx
+++ b/src/RESearch.cxx
@@ -205,6 +205,7 @@
#include <stdexcept>
#include <string>
+#include <array>
#include <algorithm>
#include <iterator>
@@ -260,11 +261,11 @@ RESearch::RESearch(CharClassify *charClassTable) {
Clear();
}
-void RESearch::Clear() noexcept {
+void RESearch::Clear() {
+ bopat.fill(NOTFOUND);
+ eopat.fill(NOTFOUND);
for (int i = 0; i < MAXTAG; i++) {
pat[i].clear();
- bopat[i] = NOTFOUND;
- eopat[i] = NOTFOUND;
}
}