diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-09-21 14:52:17 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-09-21 14:57:24 (GMT) |
commit | 4a9541d1605333e70b5ab9193d65cb300d8ef18e (patch) | |
tree | 2281e5242581485a4b3d61a8f0b3079f5dd30758 /src/commentscan.l | |
parent | c35960af3b0b867cbcd31141e94fe1573ad2bcc0 (diff) | |
download | Doxygen-4a9541d1605333e70b5ab9193d65cb300d8ef18e.zip Doxygen-4a9541d1605333e70b5ab9193d65cb300d8ef18e.tar.gz Doxygen-4a9541d1605333e70b5ab9193d65cb300d8ef18e.tar.bz2 |
Reduce the use of QString in favor of the more efficient QCString
Diffstat (limited to 'src/commentscan.l')
-rw-r--r-- | src/commentscan.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commentscan.l b/src/commentscan.l index abf218c..7c9929c 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -1180,7 +1180,7 @@ RCSTAG "$"{ID}":"[^\n$]+"$" addOutput(yytext); } <Comment>{B}*{CMD}"~"[a-z_A-Z-]* { // language switch command - QCString langId = QString(yytext).stripWhiteSpace().data()+2; + QCString langId = QCString(yytext).stripWhiteSpace().data()+2; if (!langId.isEmpty() && qstricmp(Config_getEnum(OUTPUT_LANGUAGE),langId)!=0) { // enable language specific section @@ -1190,7 +1190,7 @@ RCSTAG "$"{ID}":"[^\n$]+"$" <Comment>{B}*{CMD}"f{"[^}\n]+"}"("{"?) { // start of a formula with custom environment setOutput(OutputDoc); formulaText="\\begin"; - formulaEnv=QString(yytext).stripWhiteSpace().data()+2; + formulaEnv=QCString(yytext).stripWhiteSpace().data()+2; if (formulaEnv.at(formulaEnv.length()-1)=='{') { // remove trailing open brace |