diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-07-30 15:02:40 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-07-30 15:02:40 (GMT) |
commit | 28c10b0c9f4d4ebf1d9ac105241033eaf6fde228 (patch) | |
tree | 464e88ff672b432f2cd1560f4b1ba4c604202e39 /src | |
parent | 5050a4787b1d55b04bfb6537c0e23ee4de44397b (diff) | |
download | Doxygen-28c10b0c9f4d4ebf1d9ac105241033eaf6fde228.zip Doxygen-28c10b0c9f4d4ebf1d9ac105241033eaf6fde228.tar.gz Doxygen-28c10b0c9f4d4ebf1d9ac105241033eaf6fde228.tar.bz2 |
issue 7068: "QGDict::hashAsciiKey: Invalid null key" error messages
Diffstat (limited to 'src')
-rw-r--r-- | src/scanner.l | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/scanner.l b/src/scanner.l index 5ecf261..13abcbb 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -2014,9 +2014,12 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) } <PHPUseAs>{ID} { //printf("PHP: adding use as relation: %s->%s\n",yytext,aliasName.data()); - Doxygen::namespaceAliasDict.insert(yytext, - new QCString(removeRedundantWhiteSpace( - substitute(aliasName,"\\","::")))); + if (!aliasName.isEmpty()) + { + Doxygen::namespaceAliasDict.insert(yytext, + new QCString(removeRedundantWhiteSpace( + substitute(aliasName,"\\","::")))); + } aliasName.resize(0); } <PHPUse,PHPUseAs>[,;] { |