Skip to content

Commit 71e4244

Browse files
committed
Modified comment.
Signed-off-by: Jaehyun Kim <[email protected]>
1 parent a15334b commit 71e4244

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/odb/src/db/dbNet.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2234,9 +2234,9 @@ void dbNet::mergeNet(dbNet* in_net)
22342234
_dbNet* net = (_dbNet*) this;
22352235
_dbBlock* block = (_dbBlock*) net->getOwner();
22362236

2237-
// in_net->getITerms() returns a terminal iterator, andibterm->connect() can
2238-
// invalidate the iterator by disconnecting a dbITerm. So storing all dbITerms
2239-
// is needed for safe dbITerms iteration.
2237+
// in_net->getITerms() returns a terminal iterator, and iterm->connect() can
2238+
// invalidate the iterator by disconnecting a dbITerm.
2239+
// So storing all dbITerms is needed for safe iterms iteration.
22402240
std::vector<dbITerm*> iterms;
22412241
for (dbITerm* iterm : in_net->getITerms()) {
22422242
iterms.push_back(iterm);
@@ -2250,9 +2250,7 @@ void dbNet::mergeNet(dbNet* in_net)
22502250
iterm->connect(this);
22512251
}
22522252

2253-
// in_net->getBTerms() returns an BTerm iterator, and bterm->connect() can
2254-
// invalidate the iterator by disconnecting a dbBTerm. So storing all BTerms
2255-
// is needed for safe BTerms iteration.
2253+
// Store dbBTerms for safe iteration.
22562254
std::vector<dbBTerm*> bterms;
22572255
for (dbBTerm* bterm : in_net->getBTerms()) {
22582256
bterms.push_back(bterm);

0 commit comments

Comments
 (0)