mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-05-30 00:24:12 +08:00
return nullptr rather than empty string
Signed-off-by: Arthur Koucher <arthurkoucher@precisioninno.com>
This commit is contained in:
@@ -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_;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user