if (NS_FAILED(rv = mInner->Unassert(aSource, kNC_FolderType, objType)))
if (NS_FAILED(rv = mDataSource->Unassert(aSource, kNC_FolderType, objType)))
nsBookmarksService::setFolderHint(nsIRDFResource *newSource, nsIRDFResource *objType){	nsresult			rv;	nsCOMPtr<nsISimpleEnumerator>	srcList;	if (NS_FAILED(rv = GetSources(kNC_FolderType, objType, PR_TRUE, getter_AddRefs(srcList))))		return(rv);	PRBool	hasMoreSrcs = PR_TRUE;	while(NS_SUCCEEDED(rv = srcList->HasMoreElements(&hasMoreSrcs))		&& (hasMoreSrcs == PR_TRUE))	{		nsCOMPtr<nsISupports>	aSrc;		if (NS_FAILED(rv = srcList->GetNext(getter_AddRefs(aSrc))))			break;		nsCOMPtr<nsIRDFResource>	aSource = do_QueryInterface(aSrc);		if (!aSource)	continue;		if (NS_FAILED(rv = mInner->Unassert(aSource, kNC_FolderType, objType)))			continue;	}	// if not setting a new Personal Toolbar Folder, just assert new type, and then done	if (objType != kNC_PersonalToolbarFolder)	{		if (NS_SUCCEEDED(rv = mInner->Assert(newSource, kNC_FolderType, objType, PR_TRUE)))		{		}		mDirty = PR_TRUE;		return(rv);	}	// else if setting a new Personal Toolbar Folder, we need to work some magic!	nsCOMPtr<nsIRDFResource>	newAnonURL;	if (NS_FAILED(rv = BookmarkParser::CreateAnonymousResource(&newAnonURL)))		return(rv);	// Note: use our Change() method, not mInner->Change(), due to Bookmarks magical #URL handling	rv = Change(kNC_PersonalToolbarFolder, kNC_URL, kNC_PersonalToolbarFolder, newAnonURL);	// change newSource's URL to be kURINC_PersonalToolbarFolder	const char	*newSourceURI = nsnull;	if (NS_FAILED(rv = newSource->GetValueConst( &newSourceURI )))	return(rv);	nsCOMPtr<nsIRDFLiteral>		newSourceLiteral;	if (NS_FAILED(rv = gRDF->GetLiteral(NS_ConvertASCIItoUCS2(newSourceURI).GetUnicode(),			getter_AddRefs(newSourceLiteral))))	return(rv);	// Note: use our Change() method, not mInner->Change(), due to Bookmarks magical #URL handling	if (NS_FAILED(rv = Change(newSource, kNC_URL, newSourceLiteral, kNC_PersonalToolbarFolder)))		return(rv);	if (NS_FAILED(rv = mInner->Assert(kNC_PersonalToolbarFolder, kNC_FolderType, objType, PR_TRUE)))		return(rv);	mDirty = PR_TRUE;	Flush();	return(rv);}