if (NS_FAILED(rv = insertBookmarkItem(src, aArguments, loop, kNC_BookmarkSeparator))) return(rv);
rv = insertBookmarkItem(src, aArguments, kNC_BookmarkSeparator); if (NS_FAILED(rv))	return(rv); break;
nsBookmarksService::DoCommand(nsISupportsArray *aSources, nsIRDFResource *aCommand,				nsISupportsArray *aArguments){	nsresult		rv = NS_OK;	PRInt32			loop;	PRUint32		numSources;	if (NS_FAILED(rv = aSources->Count(&numSources)))	return(rv);	if (numSources < 1)	{		return(NS_ERROR_ILLEGAL_VALUE);	}	for (loop=((PRInt32)numSources)-1; loop>=0; loop--)	{		nsCOMPtr<nsISupports>	aSource = aSources->ElementAt(loop);		if (!aSource)	return(NS_ERROR_NULL_POINTER);		nsCOMPtr<nsIRDFResource>	src = do_QueryInterface(aSource);		if (!src)	return(NS_ERROR_NO_INTERFACE);		if (aCommand == kNC_BookmarkCommand_NewBookmark)		{			if (NS_FAILED(rv = insertBookmarkItem(src, aArguments,					loop, kNC_Bookmark)))				return(rv);		}		else if (aCommand == kNC_BookmarkCommand_NewFolder)		{			if (NS_FAILED(rv = insertBookmarkItem(src, aArguments,					loop, kNC_Folder)))				return(rv);		}		else if (aCommand == kNC_BookmarkCommand_NewSeparator)		{			if (NS_FAILED(rv = insertBookmarkItem(src, aArguments,					loop, kNC_BookmarkSeparator)))				return(rv);		}		else if (aCommand == kNC_BookmarkCommand_DeleteBookmark)		{			if (NS_FAILED(rv = deleteBookmarkItem(src, aArguments,					loop, kNC_Bookmark)))				return(rv);		}		else if (aCommand == kNC_BookmarkCommand_DeleteBookmarkFolder)		{			if (NS_FAILED(rv = deleteBookmarkItem(src, aArguments,					loop, kNC_Folder)))				return(rv);		}		else if (aCommand == kNC_BookmarkCommand_DeleteBookmarkSeparator)		{			if (NS_FAILED(rv = deleteBookmarkItem(src, aArguments,					loop, kNC_BookmarkSeparator)))				return(rv);		}	}	mDirty = PR_TRUE;	return(NS_OK);}