Skip to content

Commit b10f4b6

Browse files
authored
Merge pull request #9098 from gadfort/coverity
odb: use move instead of copy
2 parents f745f67 + 5ff84e9 commit b10f4b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/odb/src/db/dbBlock.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3473,7 +3473,7 @@ int _dbBlock::globalConnect(const std::vector<dbGlobalConnect*>& connects,
34733473
}),
34743474
insts.end());
34753475

3476-
inst_map[inst_pattern] = insts;
3476+
inst_map[inst_pattern] = std::move(insts);
34773477

34783478
for (dbInst* inst : remove_insts) {
34793479
if (gc->needsModification(inst)) {

0 commit comments

Comments
 (0)