зеркало из https://github.com/mozilla/gecko-dev.git
Do not strip out duplicate RDF commands here (we need multiple separators to pass through.)
This commit is contained in:
Родитель
db4cd01042
Коммит
45b03ef51e
|
@ -1225,15 +1225,12 @@ CompositeDataSourceImpl::GetAllCmds(nsIRDFResource* source,
|
|||
PRBool hasMore = PR_FALSE;
|
||||
while(NS_SUCCEEDED(rv = dsCmds->HasMoreElements(&hasMore)) && (hasMore == PR_TRUE))
|
||||
{
|
||||
// strip out command duplicates
|
||||
nsCOMPtr<nsISupports> item;
|
||||
if (NS_SUCCEEDED(rv = dsCmds->GetNext(getter_AddRefs(item))))
|
||||
{
|
||||
PRInt32 cmdIndex = cmdArray->IndexOf(item);
|
||||
if (cmdIndex < 0)
|
||||
{
|
||||
cmdArray->AppendElement(item);
|
||||
}
|
||||
// rjc: do NOT strip out duplicate commands here
|
||||
// (due to items such as separators, it is done at a higher level)
|
||||
cmdArray->AppendElement(item);
|
||||
}
|
||||
}
|
||||
if (NS_FAILED(rv)) return(rv);
|
||||
|
|
Загрузка…
Ссылка в новой задаче