Commit 8f367169 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Minor layout tweaks and extra guard

parent 0de73f59
......@@ -4311,14 +4311,21 @@ bool getDefs(const QCString &scName,
{
//printf("multiple results; pick one from file:%s\n", currentFile->name().data());
md = members.first();
while (md) {
if (md->getFileDef()->name() == currentFile->name())
break;
while (md)
{
if (md->getFileDef() && md->getFileDef()->name() == currentFile->name())
{
break; // found match in the current file
}
md=members.next();
}
if (!md)
if (!md) // member not in the current file
{
md=members.last();
} else {
}
}
else
{
md=members.last();
}
}
......
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