diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-02-22 21:12:58 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2021-02-22 21:12:58 (GMT) |
commit | 30d347bf8046775d6eab9bd8f70dbf3c3204e7b7 (patch) | |
tree | e1787b66788b9ab6ea5e2891b935ac626b96b2cc /src/markdown.cpp | |
parent | cb34071ca4f1abd9e002c8bb05f08fd56a8798e5 (diff) | |
download | Doxygen-30d347bf8046775d6eab9bd8f70dbf3c3204e7b7.zip Doxygen-30d347bf8046775d6eab9bd8f70dbf3c3204e7b7.tar.gz Doxygen-30d347bf8046775d6eab9bd8f70dbf3c3204e7b7.tar.bz2 |
Some performance tweaks + remove setting of global locale
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r-- | src/markdown.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp index df632d7..8ac2e5f 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -1472,7 +1472,7 @@ static QCString extractTitleId(QCString &title, int level) { TRACE(title.data()); // match e.g. '{#id-b11} ' and capture 'id-b11' - static std::regex r2("\\{#([a-z_A-Z][a-z_A-Z0-9\\-]*)\\}[[:space:]]*$"); + static const std::regex r2("\\{#([a-z_A-Z][a-z_A-Z0-9\\-]*)\\}[[:space:]]*$", std::regex::optimize); std::smatch match; std::string ti = title.str(); if (std::regex_search(ti,match,r2)) |