Skip to content

Commit 3550cec

Browse files
committed
Use swap operation
1 parent 9730625 commit 3550cec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/games/gametable.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ void GameTableRep::RebuildTable()
495495
newResults[newindex] = iter->GetOutcome();
496496
}
497497
}
498-
m_results = newResults;
498+
m_results.swap(newResults);
499499
IndexStrategies();
500500
}
501501

0 commit comments

Comments
 (0)