Skip to content

Commit

Permalink
Avoid unneeded copy with explicit move
Browse files Browse the repository at this point in the history
  • Loading branch information
drbenmorgan committed Jul 16, 2024
1 parent 57f63d2 commit 15005d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Threading.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ GetNumberOfPhysicalCpus()
while((_pos = line.find(itr)) != _npos)
line = line.replace(_pos, itr.length(), "");
}
core_ids.insert(line);
core_ids.insert(std::move(line));
}
}
core_id_count = static_cast<unsigned>(core_ids.size());
Expand Down

0 comments on commit 15005d8

Please sign in to comment.