mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 778681 part 3 - Convert nsXULTemplateQueryProcessorRDF::mQueries from nsCOMArray to nsTArray; r=bz
This commit is contained in:
parent
50c29f19f4
commit
cc5b835612
@ -107,7 +107,7 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(nsXULTemplateQueryProcessorRDF)
|
||||
if (tmp->mRuleToBindingsMap.IsInitialized()) {
|
||||
tmp->mRuleToBindingsMap.EnumerateRead(RuleToBindingTraverser, &cb);
|
||||
}
|
||||
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMARRAY(mQueries)
|
||||
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSTARRAY_OF_NSCOMPTR(mQueries)
|
||||
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTING_ADDREF(nsXULTemplateQueryProcessorRDF)
|
||||
@ -433,9 +433,7 @@ nsXULTemplateQueryProcessorRDF::CompileQuery(nsIXULTemplateBuilder* aBuilder,
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
rv = mQueries.AppendObject(query);
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
mQueries.AppendElement(query);
|
||||
|
||||
*_retval = query;
|
||||
NS_ADDREF(*_retval);
|
||||
@ -472,7 +470,7 @@ nsXULTemplateQueryProcessorRDF::GenerateResults(nsISupports* aDatasource,
|
||||
}
|
||||
else {
|
||||
// clear the cached results
|
||||
PRInt32 count = mQueries.Count();
|
||||
PRInt32 count = mQueries.Length();
|
||||
for (PRInt32 r = 0; r < count; r++) {
|
||||
mQueries[r]->ClearCachedResults();
|
||||
}
|
||||
|
@ -333,7 +333,7 @@ protected:
|
||||
/**
|
||||
* The queries
|
||||
*/
|
||||
nsCOMArray<nsITemplateRDFQuery> mQueries;
|
||||
nsTArray<nsCOMPtr<nsITemplateRDFQuery> > mQueries;
|
||||
|
||||
/**
|
||||
* All of the RDF tests in the rule network, which are checked when a new
|
||||
|
Loading…
Reference in New Issue
Block a user