diff options
-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>[,;] { |