diff --git a/src/odb/include/odb/db.h b/src/odb/include/odb/db.h index aac2fe37366..df12a127238 100644 --- a/src/odb/include/odb/db.h +++ b/src/odb/include/odb/db.h @@ -7638,7 +7638,7 @@ class dbScanChain : public dbObject dbSet getScanInsts() const; // User Code Begin dbScanChain - std::string_view getName() const; + const std::string& getName() const; void setName(std::string_view name); @@ -7651,7 +7651,7 @@ class dbScanChain : public dbObject void setScanEnable(dbBTerm* scan_enable); dbBTerm* getScanEnable() const; - std::string_view getTestMode() const; + const std::string& getTestMode() const; void setTestMode(std::string_view test_mode); static dbScanChain* create(dbDft* dft); @@ -7674,7 +7674,7 @@ class dbScanInst : public dbObject // User Code Begin dbScanInst void setScanClock(std::string_view scan_clock); - std::string_view getScanClock() const; + const std::string& getScanClock() const; void setClockEdge(ClockEdge clock_edge); ClockEdge getClockEdge() const; @@ -7713,7 +7713,7 @@ class dbScanPartition : public dbObject std::variant getStop() const; - std::string_view getName() const; + const std::string& getName() const; void setName(std::string_view name); diff --git a/src/odb/src/db/dbScanChain.cpp b/src/odb/src/db/dbScanChain.cpp index c332507460a..26719d3a158 100644 --- a/src/odb/src/db/dbScanChain.cpp +++ b/src/odb/src/db/dbScanChain.cpp @@ -194,7 +194,7 @@ dbSet dbScanChain::getScanInsts() const // User Code Begin dbScanChainPublicMethods -std::string_view dbScanChain::getName() const +const std::string& dbScanChain::getName() const { _dbScanChain* scan_chain = (_dbScanChain*) this; return scan_chain->name_; @@ -263,7 +263,7 @@ void dbScanChain::setTestMode(std::string_view test_mode) scan_chain->test_mode_ = test_mode; } -std::string_view dbScanChain::getTestMode() const +const std::string& dbScanChain::getTestMode() const { _dbScanChain* scan_chain = (_dbScanChain*) this; return scan_chain->test_mode_; diff --git a/src/odb/src/db/dbScanInst.cpp b/src/odb/src/db/dbScanInst.cpp index b8e70b9652c..759a1c9bb43 100644 --- a/src/odb/src/db/dbScanInst.cpp +++ b/src/odb/src/db/dbScanInst.cpp @@ -137,7 +137,7 @@ void dbScanInst::setScanClock(std::string_view scan_clock) scan_inst->scan_clock_ = scan_clock; } -std::string_view dbScanInst::getScanClock() const +const std::string& dbScanInst::getScanClock() const { _dbScanInst* scan_inst = (_dbScanInst*) this; return scan_inst->scan_clock_; diff --git a/src/odb/src/db/dbScanPartition.cpp b/src/odb/src/db/dbScanPartition.cpp index 23794670828..5b651cbc65b 100644 --- a/src/odb/src/db/dbScanPartition.cpp +++ b/src/odb/src/db/dbScanPartition.cpp @@ -172,7 +172,7 @@ std::variant dbScanPartition::getStop() const return scan_pin->getPin(); } -std::string_view dbScanPartition::getName() const +const std::string& dbScanPartition::getName() const { _dbScanPartition* scan_partition = (_dbScanPartition*) this; return scan_partition->name_;