Bug 819791 - Part 8: Use explicit TArray copy constructors in FrameLayerBuilder. r=roc

This commit is contained in:
Justin Lebar 2012-12-18 20:16:06 -05:00
parent 1ce158bdfa
commit e1fa823a2c

View File

@ -115,7 +115,7 @@ FrameLayerBuilder::DisplayItemData::UpdateContents(Layer* aLayer, LayerState aSt
return;
}
nsAutoTArray<nsIFrame*, 4> copy = mFrameList;
nsAutoTArray<nsIFrame*, 4> copy(mFrameList);
if (!copy.RemoveElement(aItem->GetUnderlyingFrame())) {
AddFrame(aItem->GetUnderlyingFrame());
}