Commit 5e24df52 authored by Dimitri van Heesch's avatar Dimitri van Heesch
Browse files

Fixed bug handling const/volatile

parent 8a6cb1ba
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1537,10 +1537,10 @@ QCString removeRedundantWhiteSpace(const QCString &s)
  {
  {
nextChar:
nextChar:
    char c=s.at(i);
    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]
        c==constScope[csp]
       ) csp++; else csp=0;
       ) 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]
        c==virtualScope[vsp]
       ) vsp++; else vsp=0;
       ) vsp++; else vsp=0;
    if (c=='"') // quoted string
    if (c=='"') // quoted string