зеркало из https://github.com/mozilla/gecko-dev.git
fix for bug 162115 - add nsCOMArray<T> and nsIArray to the build
r=dougt, sr=darin, lots of comments from brendan, kai, bugmail@sicking.cc, frank.schoenheit@gmx.de, and even a little license help from timeless Original committer: alecf%netscape.com Original revision: 1.3 Original date: 2002/10/07 19:03:35
This commit is contained in:
Родитель
ba76d53caa
Коммит
9bbc39a68d
|
@ -87,8 +87,8 @@ NS_NewArrayEnumerator(nsISimpleEnumerator* *result,
|
|||
nsSimpleArrayEnumerator* enumer = new nsSimpleArrayEnumerator(array);
|
||||
if (enumer == nsnull)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
*result = enumer;
|
||||
NS_ADDREF(*result);
|
||||
|
||||
NS_ADDREF(*result = enumer);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -202,7 +202,6 @@ NS_NewArrayEnumerator(nsISimpleEnumerator* *aResult,
|
|||
nsCOMArrayEnumerator *enumerator = new (aArray) nsCOMArrayEnumerator();
|
||||
if (!enumerator) return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
*aResult = enumerator;
|
||||
NS_ADDREF(*aResult);
|
||||
NS_ADDREF(*aResult = enumerator);
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче