summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-10-17 21:08:10 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-10-17 21:08:10 (GMT)
commit6ad4771494b64943541d87639743de4d6618ebc4 (patch)
tree651eb2bd48ead1a4b189484058ee991c8a46463b /src/util.cpp
parent65f47e04daaf7f06da11c64af364e65e60e66387 (diff)
downloadDoxygen-6ad4771494b64943541d87639743de4d6618ebc4.zip
Doxygen-6ad4771494b64943541d87639743de4d6618ebc4.tar.gz
Doxygen-6ad4771494b64943541d87639743de4d6618ebc4.tar.bz2
Fixed bug handling const/volatile
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp4
1 files 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