Bug 1594886 - Remove xpidl [array] use in nsIMsgKeyArray. r=jorgk
This commit is contained in:
Родитель
8be3010dc0
Коммит
53ca48f54a
|
@ -48,7 +48,6 @@ interface nsIMsgKeyArray : nsISupports {
|
|||
*
|
||||
* @returns array of the keys
|
||||
*/
|
||||
void getArray(out unsigned long aCount,
|
||||
[array, size_is(aCount)] out nsMsgKey aKeys);
|
||||
Array<nsMsgKey> getArray();
|
||||
};
|
||||
|
||||
|
|
|
@ -56,11 +56,7 @@ NS_IMETHODIMP nsMsgKeyArray::InsertElementSorted(nsMsgKey aKey) {
|
|||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsMsgKeyArray::GetArray(uint32_t *aCount, nsMsgKey **aKeys) {
|
||||
NS_ENSURE_ARG_POINTER(aCount);
|
||||
NS_ENSURE_ARG_POINTER(aKeys);
|
||||
*aCount = m_keys.Length();
|
||||
*aKeys = (nsMsgKey *)moz_xmemdup(m_keys.Elements(),
|
||||
m_keys.Length() * sizeof(nsMsgKey));
|
||||
return (*aKeys) ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
|
||||
NS_IMETHODIMP nsMsgKeyArray::GetArray(nsTArray<nsMsgKey> &aKeys) {
|
||||
aKeys = m_keys;
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче