summaryrefslogtreecommitdiffstats
path: root/src/htmlhelp.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/htmlhelp.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/htmlhelp.cpp')
-rw-r--r--src/htmlhelp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/htmlhelp.cpp b/src/htmlhelp.cpp
index b020bb0..e3a007a 100644
--- a/src/htmlhelp.cpp
+++ b/src/htmlhelp.cpp
@@ -154,7 +154,7 @@ void HtmlHelpIndex::addItem(const char *level1,const char *level2,
const char *url,const char *anchor,bool hasLink,
bool reversed)
{
- static std::regex re("@[[:digit:]]+");
+ static const std::regex re("@[[:digit:]]+", std::regex::optimize);
std::string key = level1;
if (level2) key+= std::string("?") + level2;
if (std::regex_search(key,re)) // skip anonymous stuff