diff options
author | Paul Wicking <paul.wicking@qt.io> | 2018-10-11 05:44:56 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2018-10-12 14:01:22 +0000 |
commit | 2bc3b75c0a572bb36db666dbd8e24209d437e421 (patch) | |
tree | cd9ae3f51f0ccb41b9b585e065da79230dec7264 /src/qdoc/qdocglobals.cpp | |
parent | c23d08e4315866110fc700fbfde3d3f02fb3344f (diff) | |
download | qttools-2bc3b75c0a572bb36db666dbd8e24209d437e421.tar.gz |
QDoc: Refactor command line parser class out of main.cpp
Move command line parser class out of main.
Fix bug in QDocGlobals that caused include paths to break,
by pushing one instead of two strings into a stringlist.
Change-Id: I08b7eb02f1e3cf6e9ad33dc24322886ca2dc2fcd
Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'src/qdoc/qdocglobals.cpp')
-rw-r--r-- | src/qdoc/qdocglobals.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qdoc/qdocglobals.cpp b/src/qdoc/qdocglobals.cpp index 181b32b9d..2e1e084ed 100644 --- a/src/qdoc/qdocglobals.cpp +++ b/src/qdoc/qdocglobals.cpp @@ -127,7 +127,8 @@ QStringList QDocGlobals::includesPaths() void QDocGlobals::addIncludePath(const QString &flag, const QString &path) { - m_includesPaths << flag << path; + QString includePath = flag + path; + m_includesPaths << includePath; } QStringList &QDocGlobals::dependModules() |