提交 8482355f 编写于 作者: T Tomas Matousek

Avoid unneccessary item copies in RemoveDuplicates

上级 931e8fdf
......@@ -425,10 +425,9 @@ public void RemoveDuplicates()
int j = 0;
for (int i = 0; i < Count; i++)
{
this[j] = this[i];
if (set.Add(this[i]))
{
this[j] = this[i];
j++;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册