Commit 6ad47714 authored by dimitri's avatar dimitri

Fixed bug handling const/volatile

parent 65f47e04
......@@ -1537,10 +1537,10 @@ QCString removeRedundantWhiteSpace(const QCString &s)
{
nextChar:
char c=s.at(i);
if ((csp==0 && (i==0 || !isId(constScope[i-1])) && csp<6) &&
if ((csp==0 && (i==0 || !isId(constScope[i-1])) || (csp>0 && csp<6)) &&
c==constScope[csp]
) csp++; else csp=0;
if ((vsp==0 && (i==0 || !isId(virtualScope[i-1])) && vsp<8) &&
if ((vsp==0 && (i==0 || !isId(virtualScope[i-1])) || (vsp>0 && vsp<8)) &&
c==virtualScope[vsp]
) vsp++; else vsp=0;
if (c=='"') // quoted string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment