summaryrefslogtreecommitdiffstats
path: root/src/vhdldocgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2009-01-29 20:13:23 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2009-01-29 20:13:23 (GMT)
commit5f3d8499c05e9eb512b72d296073041ac4da6f4d (patch)
tree0653bda058f25d9420dd6ddcaf4edc28781a8aa4 /src/vhdldocgen.cpp
parenta0924f7d469a42ab962763ce34ea5fabc73da9d7 (diff)
downloadDoxygen-5f3d8499c05e9eb512b72d296073041ac4da6f4d.zip
Doxygen-5f3d8499c05e9eb512b72d296073041ac4da6f4d.tar.gz
Doxygen-5f3d8499c05e9eb512b72d296073041ac4da6f4d.tar.bz2
Release-1.5.8-20090129
Diffstat (limited to 'src/vhdldocgen.cpp')
-rw-r--r--src/vhdldocgen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vhdldocgen.cpp b/src/vhdldocgen.cpp
index 04fa62a..eb535ce 100644
--- a/src/vhdldocgen.cpp
+++ b/src/vhdldocgen.cpp
@@ -1049,10 +1049,10 @@ void VhdlDocGen::parseFuncProto(const char* text,QList<Argument>& qlist,
QCString s1(text);
s1=s1.stripWhiteSpace();
int i=s1.find("(",0,FALSE);
- int s=s1.find(" ",0,FALSE);
- if (i==-1)
+ int s=s1.find(QRegExp("[ \\t]"));
+ if (i==-1 || i<s)
s1=VhdlDocGen::getIndexWord(s1.data(),1);
- else
+ else // s<i, s=start of name, i=end of name
s1=s1.mid(s,(i-s));
name=s1.stripWhiteSpace();