diff options
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r-- | src/doctokenizer.l | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l index 36da1d7..63a49ca 100644 --- a/src/doctokenizer.l +++ b/src/doctokenizer.l @@ -755,8 +755,7 @@ RCSID "$"("Author"|"Date"|"Header"|"Id"|"Locker"|"Log"|"Name"|"RCSfile"|"Revisio <St_Para,St_Text>[\-+0-9] | <St_Para,St_Text>{WORD1} | <St_Para,St_Text>{WORD2} { /* function call */ - QCString tmp = yytext; - if (tmp.contains("\\ilinebr")>0) REJECT; + if (QCString(yytext).find("\\ilinebr")!=-1) REJECT; // see issue #8311 lineCount(yytext,yyleng); if (yytext[0]=='%') // strip % if present g_token->name = &yytext[1]; @@ -1044,8 +1043,7 @@ RCSID "$"("Author"|"Date"|"Header"|"Id"|"Locker"|"Log"|"Name"|"RCSfile"|"Revisio <St_TitleN>[\-+0-9] | <St_TitleN>{WORD1} | <St_TitleN>{WORD2} { /* word */ - QCString tmp = yytext; - if (tmp.contains("\\ilinebr")>0) REJECT; + if (QCString(yytext).find("\\ilinebr")!=-1) REJECT; // see issue #8311 lineCount(yytext,yyleng); if (yytext[0]=='%') // strip % if present g_token->name = &yytext[1]; |