summaryrefslogtreecommitdiffstats
path: root/src/tools/qdoc/codeparser.cpp
diff options
context:
space:
mode:
authorJędrzej Nowacki <jedrzej.nowacki@digia.com>2013-04-04 16:04:49 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-21 18:39:13 +0200
commit8969f57b6abef31d2e27500742dffa5498e38a46 (patch)
treeb4301de4637111cfb1d9826fd638c35f693f890b /src/tools/qdoc/codeparser.cpp
parentcab86ec3edda4c64b816b3a3f84aebd103093c67 (diff)
Improve qdoc performance.
Valgrind blamed CppCodeMarker::addMarkUp as slow, the patch improves situation by ~12% Use of QStringLiterals instead of const char* reduce amount of allocations on startup. Change-Id: I8737e02785506bba7e23868ab3952eab09d543d2 Reviewed-by: Martin Smith <martin.smith@digia.com>
Diffstat (limited to 'src/tools/qdoc/codeparser.cpp')
-rw-r--r--src/tools/qdoc/codeparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/qdoc/codeparser.cpp b/src/tools/qdoc/codeparser.cpp
index 1be67894cc..8f57a691bf 100644
--- a/src/tools/qdoc/codeparser.cpp
+++ b/src/tools/qdoc/codeparser.cpp
@@ -102,7 +102,7 @@ CodeParser::~CodeParser()
*/
void CodeParser::initializeParser(const Config& config)
{
- showInternal = config.getBool(QLatin1String(CONFIG_SHOWINTERNAL));
+ showInternal = config.getBool(CONFIG_SHOWINTERNAL);
}
/*!