if (NS_SUCCEEDED(rv = IsBookmarkedResource(aSource, &isBookmarkedFlag)) && (isBookmarkedFlag == PR_TRUE) && (NS_SUCCEEDED(rv = gRDFC->IsOrdinalProperty(aProperty, &isOrdinal)))) { if (isOrdinal == PR_TRUE) { canAcceptFlag = PR_TRUE; } else if ((aProperty == kNC_Description) || (aProperty == kNC_Name) || (aProperty == kNC_ShortcutURL) || (aProperty == kNC_URL) || (aProperty == kWEB_LastModifiedDate) || (aProperty == kWEB_LastVisitDate) || (aProperty == kNC_BookmarkAddDate) || (aProperty == kRDF_nextVal) || (aProperty == kRDF_type) || (aProperty == kWEB_Schedule)) { canAcceptFlag = PR_TRUE; } } return canAcceptFlag;
PRBool isOrdinal; rv = gRDFC->IsOrdinalProperty(aProperty, &isOrdinal); if (NS_FAILED(rv)) return PR_FALSE;  if (isOrdinal) { return PR_TRUE; } else if ((aProperty == kNC_Description) || (aProperty == kNC_Name) || (aProperty == kNC_ShortcutURL) || (aProperty == kNC_URL) || (aProperty == kWEB_LastModifiedDate) || (aProperty == kWEB_LastVisitDate) || (aProperty == kNC_BookmarkAddDate)) { return PR_TRUE; } else { return PR_FALSE; }
nsBookmarksService::CanAccept(nsIRDFResource* aSource,                  nsIRDFResource* aProperty,                  nsIRDFNode* aTarget){    nsresult    rv;    PRBool      isBookmarkedFlag = PR_FALSE, canAcceptFlag = PR_FALSE, isOrdinal;    if (NS_SUCCEEDED(rv = IsBookmarkedResource(aSource, &isBookmarkedFlag)) &&        (isBookmarkedFlag == PR_TRUE) &&        (NS_SUCCEEDED(rv = gRDFC->IsOrdinalProperty(aProperty, &isOrdinal))))    {        if (isOrdinal == PR_TRUE)        {            canAcceptFlag = PR_TRUE;        }        else if ((aProperty == kNC_Description) ||             (aProperty == kNC_Name) ||             (aProperty == kNC_ShortcutURL) ||             (aProperty == kNC_URL) ||             (aProperty == kWEB_LastModifiedDate) ||             (aProperty == kWEB_LastVisitDate) ||             (aProperty == kNC_BookmarkAddDate) ||             (aProperty == kRDF_nextVal) ||             (aProperty == kRDF_type) ||             (aProperty == kWEB_Schedule))        {            canAcceptFlag = PR_TRUE;        }    }    return canAcceptFlag;}