return nullptr rather than empty string
Signed-off-by: Arthur Koucher <arthurkoucher@precisioninno.com>
This commit is contained in:
parent
c0cf80ef56
commit
2de024f6e8
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -2001,10 +2001,7 @@ LibertyCell::setFootprint(const char *footprint)
|
|||
const char*
|
||||
LibertyCell::footprint() const
|
||||
{
|
||||
if (footprint_)
|
||||
return footprint_;
|
||||
else
|
||||
return "";
|
||||
return footprint_;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
Loading…
Reference in New Issue