Commit 35d9aa78 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 735037 - QGDict::hashAsciiKey: Invalid null key

parent df2a9ea9
...@@ -3024,10 +3024,17 @@ void preprocessFile(const char *fileName,BufStr &input,BufStr &output) ...@@ -3024,10 +3024,17 @@ void preprocessFile(const char *fileName,BufStr &input,BufStr &output)
int i=i_obrace+1,p,l,count=0; int i=i_obrace+1,p,l,count=0;
// gather the formal arguments in a dictionary // gather the formal arguments in a dictionary
while (i<i_cbrace && (p=reId.match(ds,i,&l))) while (i<i_cbrace && (p=reId.match(ds,i,&l)))
{
if (l>0) // see bug375037
{ {
argDict.insert(ds.mid(p,l),new int(count++)); argDict.insert(ds.mid(p,l),new int(count++));
i=p+l; i=p+l;
} }
else
{
i++;
}
}
// strip definition part // strip definition part
QCString tmp=ds.right(ds.length()-i_equals-1); QCString tmp=ds.right(ds.length()-i_equals-1);
QCString definition; QCString definition;
......
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