Bug 968520 - Add mozilla::fallible to FallibleTArray::InsertElementSorted calls. r=froydnj

This commit is contained in:
Birunthan Mohanathas
2015-06-08 13:40:00 -07:00
parent 9d7d8fb0d9
commit ed3f53328d
2 changed files with 11 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ ChunkSet::Set(uint32_t aChunk)
{
size_t idx = mChunks.BinaryIndexOf(aChunk);
if (idx == nsTArray<uint32_t>::NoIndex) {
if (!mChunks.InsertElementSorted(aChunk)) {
if (!mChunks.InsertElementSorted(aChunk, fallible)) {
return NS_ERROR_OUT_OF_MEMORY;
}
}