return nullptr rather than empty string

Signed-off-by: Arthur Koucher <arthurkoucher@precisioninno.com>
This commit is contained in:
Arthur Koucher 2024-09-06 11:44:17 -03:00
parent c0cf80ef56
commit 2de024f6e8
2 changed files with 2 additions and 5 deletions

View File

@ -530,7 +530,7 @@ bool
equivCellFootprints(const LibertyCell *cell1,
const LibertyCell *cell2)
{
return strcmp(cell1->footprint(), cell2->footprint()) == 0;
return stringEqIf(cell1->footprint(), cell2->footprint());
}
} // namespace

View File

@ -2001,10 +2001,7 @@ LibertyCell::setFootprint(const char *footprint)
const char*
LibertyCell::footprint() const
{
if (footprint_)
return footprint_;
else
return "";
return footprint_;
}
////////////////////////////////////////////////////////////////