Skip to content

Commit

Permalink
Reduce the number of calls to stripWhiteSpace()
Browse files Browse the repository at this point in the history
  • Loading branch information
doxygen committed Oct 19, 2023
1 parent 5bcc316 commit 00e9110
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pre.l
Expand Up @@ -3386,16 +3386,16 @@ static void determineBlockName(yyscan_t yyscanner)
}
else
{
QCString bn=&yytext[1];
if (bn.stripWhiteSpace()=="startuml")
QCString bn=QCString(&yytext[1]).stripWhiteSpace();
if (bn=="startuml")
{
yyextra->blockName="uml";
}
else
{
int i = bn.find('{'); // for \code{.c}
if (i!=-1) bn=bn.left(i);
yyextra->blockName=bn.stripWhiteSpace();
if (i!=-1) bn=bn.left(i).stripWhiteSpace();
yyextra->blockName=bn;
}
}
}
Expand Down

0 comments on commit 00e9110

Please sign in to comment.