Do not strip out duplicate RDF commands here (we need multiple separators to pass through.)

This commit is contained in:
rjc%netscape.com 2000-03-24 02:40:24 +00:00
Родитель db4cd01042
Коммит 45b03ef51e
1 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@ -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);