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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user