File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -7145,7 +7145,8 @@ class dbChipNet : public dbObject
71457145
71467146 dbChipBumpInst* getBumpInst (uint index, std::vector<dbChipInst*>& path) const ;
71477147
7148- void addBumpInst (dbChipBumpInst* bump_inst, std::vector<dbChipInst*> path);
7148+ void addBumpInst (dbChipBumpInst* bump_inst,
7149+ const std::vector<dbChipInst*>& path);
71497150
71507151 static dbChipNet* create (dbChip* chip, const std::string& name);
71517152
Original file line number Diff line number Diff line change @@ -134,13 +134,14 @@ dbChipBumpInst* dbChipNet::getBumpInst(uint index,
134134}
135135
136136void dbChipNet::addBumpInst (dbChipBumpInst* bump_inst,
137- std::vector<dbChipInst*> path)
137+ const std::vector<dbChipInst*>& path)
138138{
139139 _dbChipNet* obj = (_dbChipNet*) this ;
140140
141141 std::vector<dbId<_dbChipInst>> path_ids;
142- for (dbChipInst* inst : path) {
143- path_ids.push_back (inst->getImpl ()->getOID ());
142+ path_ids.reserve (path.size ());
143+ for (const auto & inst : path) {
144+ path_ids.emplace_back (inst->getImpl ()->getOID ());
144145 }
145146
146147 obj->bump_insts_paths_ .emplace_back (std::move (path_ids),
You can’t perform that action at this time.
0 commit comments