From 28c10b0c9f4d4ebf1d9ac105241033eaf6fde228 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Tue, 30 Jul 2019 17:02:40 +0200 Subject: issue 7068: "QGDict::hashAsciiKey: Invalid null key" error messages --- src/scanner.l | 9 ++++++--- 1 file 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}) } {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); } [,;] { -- cgit v0.12