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

git-svn-id: svn://10.0.0.236/trunk@63968 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rjc%netscape.com
2000-03-24 02:40:24 +00:00
parent 4d154c3191
commit d2e517703b

View File

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