@@ -713,13 +713,9 @@ getProperty(const LibertyCell *cell,
713713 else if (stringEqual (property, " full_name" )) {
714714 auto network = sta->cmdNetwork ();
715715 auto lib = cell->libertyLibrary ();
716- const char *lib_name = lib->name ();
717- const char *cell_name = cell->name ();
718- string full_name;
719- stringPrint (full_name, " %s%c%s" ,
720- lib_name,
721- network->pathDivider (),
722- cell_name);
716+ string lib_name = lib->name ();
717+ string cell_name = cell->name ();
718+ string full_name = lib_name + network->pathDivider () + cell_name;
723719 return PropertyValue (full_name);
724720 }
725721 else if (stringEqual (property, " filename" ))
@@ -748,14 +744,10 @@ getProperty(const Cell *cell,
748744 || stringEqual (property, " base_name" ))
749745 return PropertyValue (network->name (cell));
750746 else if (stringEqual (property, " full_name" )) {
751- auto lib = network->library (cell);
752- const char *lib_name = network->name (lib);
753- const char *cell_name = network->name (cell);
754- string full_name;
755- stringPrint (full_name, " %s%c%s" ,
756- lib_name,
757- network->pathDivider (),
758- cell_name);
747+ Library *lib = network->library (cell);
748+ string lib_name = network->name (lib);
749+ string cell_name = network->name (cell);
750+ string full_name = lib_name + network->pathDivider () + cell_name;
759751 return PropertyValue (full_name);
760752 }
761753 else if (stringEqual (property, " library" ))
0 commit comments