rv = NS_NewISupportsArray(getter_AddRefs(folderArray)); if (NS_FAILED(rv)) return rv; folderArray->AppendElement(folderResource); rv = DoCommand(db, NC_RDF_EMPTYTRASH, folderArray, nsnull); if (NS_SUCCEEDED(rv) && mTxnMgr) mTxnMgr->Clear();
rv = folder->GetResource(getter_AddRefs(folderResource)); if (NS_SUCCEEDED(rv)) { rv = NS_NewISupportsArray(getter_AddRefs(folderArray)); if (NS_FAILED(rv)) return rv; folderArray->AppendElement(folderResource); rv = DoCommand(db, NC_RDF_EMPTYTRASH, folderArray, nsnull); }
nsMessenger::EmptyTrash(nsIRDFCompositeDataSource* db,                        nsIRDFResource* folderResource){  nsresult rv = NS_ERROR_NULL_POINTER;    if (!db || !folderResource) return rv;  nsCOMPtr<nsISupportsArray> folderArray;  rv = NS_NewISupportsArray(getter_AddRefs(folderArray));  if (NS_FAILED(rv)) return rv;  folderArray->AppendElement(folderResource);  rv = DoCommand(db, NC_RDF_EMPTYTRASH, folderArray, nsnull);  if (NS_SUCCEEDED(rv) && mTxnMgr)      mTxnMgr->Clear();  return rv;}