This commit is contained in:
morse%netscape.com 1999-08-08 20:33:27 +00:00
Родитель 58e57407a9
Коммит 389af52bf1
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -166,6 +166,9 @@ nsSupportsArray::LastIndexOf(const nsISupports* aPossibleElement)
NS_IMETHODIMP_(PRBool)
nsSupportsArray::InsertElementAt(nsISupports* aElement, PRUint32 aIndex)
{
if (!aElement) {
return PR_FALSE;
}
if (aIndex <= mCount) {
if (mArraySize < (mCount + 1)) { // need to grow the array
mArraySize += kGrowArrayBy;