Skip to content

Commit b68348e

Browse files
perf: pidMap Use emplace instead of copy assignment
1 parent 6fb0555 commit b68348e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@ UPDATE: This is done now!!
15111511

15121512
if (Process32First(hSnapshot, &pe32)) {
15131513
do {
1514-
pidMap[pe32.th32ProcessID] = pe32;
1514+
pidMap.emplace(pe32.th32ProcessID, pe32);
15151515
} while (Process32Next(hSnapshot, &pe32));
15161516
}
15171517

0 commit comments

Comments
 (0)