summaryrefslogtreecommitdiffstats
path: root/src/template.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-02-22 21:12:58 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-02-22 21:12:58 (GMT)
commit30d347bf8046775d6eab9bd8f70dbf3c3204e7b7 (patch)
treee1787b66788b9ab6ea5e2891b935ac626b96b2cc /src/template.cpp
parentcb34071ca4f1abd9e002c8bb05f08fd56a8798e5 (diff)
downloadDoxygen-30d347bf8046775d6eab9bd8f70dbf3c3204e7b7.zip
Doxygen-30d347bf8046775d6eab9bd8f70dbf3c3204e7b7.tar.gz
Doxygen-30d347bf8046775d6eab9bd8f70dbf3c3204e7b7.tar.bz2
Some performance tweaks + remove setting of global locale
Diffstat (limited to 'src/template.cpp')
-rw-r--r--src/template.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/template.cpp b/src/template.cpp
index 61411be..4c296aa 100644
--- a/src/template.cpp
+++ b/src/template.cpp
@@ -4186,7 +4186,7 @@ class TemplateNodeMarkers : public TemplateNodeCreator<TemplateNodeMarkers>
c->push();
std::string str = patternStr.toString().str();
- static std::regex marker("@([[:digit:]]+)");
+ static const std::regex marker("@([[:digit:]]+)", std::regex::optimize);
std::sregex_iterator re_it(str.begin(),str.end(),marker);
std::sregex_iterator end;
size_t index=0;