mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 17:24:29 +00:00
When building up list of commands via GetAllCmds(), walk forwards instead of backwards over datasources.
This commit is contained in:
parent
7e40b15988
commit
959d96f88c
@ -1140,7 +1140,7 @@ CompositeDataSourceImpl::GetAllCmds(nsIRDFResource* source,
|
||||
rv = NS_NewISupportsArray(getter_AddRefs(cmdArray));
|
||||
if (NS_FAILED(rv)) return(rv);
|
||||
|
||||
for (PRInt32 i = mDataSources.Count() - 1; i >= 0; --i)
|
||||
for (PRInt32 i = 0; i < mDataSources.Count(); i++)
|
||||
{
|
||||
nsIRDFDataSource *ds = NS_STATIC_CAST(nsIRDFDataSource*, mDataSources[i]);
|
||||
nsCOMPtr<nsISimpleEnumerator> dsCmds;
|
||||
|
Loading…
x
Reference in New Issue
Block a user