Skip to content

Commit c747e1f

Browse files
committed
Used std::string_view instead of const std::string& for the name argument.
Signed-off-by: Jaehyun Kim <[email protected]>
1 parent 0621fee commit c747e1f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dbSta/src/dbEditHierarchy.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ void dbEditHierarchy::cleanUnusedHierPins(
593593
}
594594

595595
std::string dbEditHierarchy::makeUniqueName(dbModule* module,
596-
const std::string& name,
596+
std::string_view name,
597597
const char* io_type_str) const
598598
{
599599
std::string base_name;

src/dbSta/src/dbEditHierarchy.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class dbEditHierarchy
6363
dbModITerm*& top_mod_iterm) const;
6464
void reassociatePinConnection(Pin* pin);
6565
std::string makeUniqueName(dbModule* module,
66-
const std::string& name,
66+
std::string_view name,
6767
const char* io_type_str = nullptr) const;
6868

6969
// During the addition of new ports and new wiring we may

0 commit comments

Comments
 (0)