Bug 1411069 - Port
bug 1313150, follow-up: Remove |weak| parameter from nsIMutableArray methods (ldap, suite). r=jorgk
--- a/ldap/xpcom/src/nsLDAPModification.cpp
+++ b/ldap/xpcom/src/nsLDAPModification.cpp
@@ -101,17 +101,17 @@ nsLDAPModification::SetValues(nsIArray*
nsCOMPtr<nsISupports> value;
while (hasMoreElements)
{
rv = enumerator->GetNext(getter_AddRefs(value));
NS_ENSURE_SUCCESS(rv, rv);
- rv = mValues->AppendElement(value, false);
+ rv = mValues->AppendElement(value);
NS_ENSURE_SUCCESS(rv, rv);
rv = enumerator->HasMoreElements(&hasMoreElements);
NS_ENSURE_SUCCESS(rv, rv);
}
return NS_OK;
}
@@ -149,10 +149,10 @@ nsLDAPModification::SetUpModificationOne
if (!mValues)
mValues = do_CreateInstance(NS_ARRAY_CONTRACTID, &rv);
else
rv = mValues->Clear();
NS_ENSURE_SUCCESS(rv, rv);
- return mValues->AppendElement(aValue, false);
+ return mValues->AppendElement(aValue);
}
--- a/suite/common/pref/pref-applications.js
+++ b/suite/common/pref/pref-applications.js
@@ -537,17 +537,17 @@ FeedHandlerInfo.prototype = {
enumerate: function() {
return new ArrayEnumerator(this._inner);
},
indexOf: function indexOf(startIndex, element) {
return this._inner.indexOf(element, startIndex);
},
- appendElement: function(aHandlerApp, aWeak) {
+ appendElement: function(aHandlerApp) {
this._inner.push(aHandlerApp);
},
removeElementAt: function(aIndex) {
this._removed.push(this._inner[aIndex]);
this._inner.splice(aIndex, 1);
},