Skip to content

Commit bebd80f

Browse files
committed
Correct handling of error / removed debug statement
In the vhdldocgen: - error should be handled in a doxygen consistent way (in this case with an err call) - removed left over debug statment (found through #7528)
1 parent dc67dbe commit bebd80f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/vhdldocgen.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ void VhdlDocGen::writeOverview()
200200

201201
if (!f.open(IO_WriteOnly))
202202
{
203-
fprintf(stderr,"Warning: Cannot open file %s for writing\n",fileName.data());
203+
err("Warning: Cannot open file %s for writing\n",fileName.data());
204204
return;
205205
}
206206

@@ -2932,14 +2932,14 @@ static void addInstance(ClassDef* classEntity, ClassDef* ar,
29322932
md->setBodyDef(fd);
29332933

29342934

2935-
QCString info="Info: Elaborating entity "+n1;
2936-
fd=ar->getFileDef();
2937-
info+=" for hierarchy ";
2938-
QRegExp epr("[|]");
2939-
QCString label=cur->type+":"+cur->write+":"+cur->name;
2940-
label.replace(epr,":");
2941-
info+=label;
2942-
fprintf(stderr,"\n[%s:%d:%s]\n",fd->fileName().data(),cur->startLine,info.data());
2935+
//QCString info="Info: Elaborating entity "+n1;
2936+
//fd=ar->getFileDef();
2937+
//info+=" for hierarchy ";
2938+
//QRegExp epr("[|]");
2939+
//QCString label=cur->type+":"+cur->write+":"+cur->name;
2940+
//label.replace(epr,":");
2941+
//info+=label;
2942+
//fprintf(stderr,"\n[%s:%d:%s]\n",fd->fileName().data(),cur->startLine,info.data());
29432943

29442944

29452945
ar->insertMember(md);

0 commit comments

Comments
 (0)