From 6ad4771494b64943541d87639743de4d6618ebc4 Mon Sep 17 00:00:00 2001 From: dimitri Date: Tue, 17 Oct 2006 21:08:10 +0000 Subject: Fixed bug handling const/volatile --- src/util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.cpp b/src/util.cpp index 67c7c03..96f0e84 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -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 -- cgit v0.12