Fix bug # 124743: RDF SEQs. r=tingley sr=ben

This commit is contained in:
rjc%netscape.com 2002-02-12 00:49:56 +00:00
Родитель 66a9afbfc9
Коммит 025bf62abb
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -233,8 +233,8 @@ RDFContainerUtilsImpl::IsContainer(nsIRDFDataSource *aDataSource, nsIRDFResource
if (! _retval)
return NS_ERROR_NULL_POINTER;
if (IsA(aDataSource, aResource, kRDF_Bag) ||
IsA(aDataSource, aResource, kRDF_Seq) ||
if (IsA(aDataSource, aResource, kRDF_Seq) ||
IsA(aDataSource, aResource, kRDF_Bag) ||
IsA(aDataSource, aResource, kRDF_Alt)) {
*_retval = PR_TRUE;
}

Просмотреть файл

@ -2899,7 +2899,7 @@ nsBookmarksService::GetSynthesizedType(nsIRDFResource *aNode, nsIRDFNode **aType
// (which is either a bookmark or a bookmark folder, since everything
// else is annotated)
PRBool isContainer = PR_FALSE;
(void)gRDFC->IsContainer(mInner, aNode, &isContainer);
(void)gRDFC->IsSeq(mInner, aNode, &isContainer);
*aType = (isContainer) ? kNC_Folder : kNC_Bookmark;
NS_ADDREF(*aType);
}