This commit is contained in:
rjc%netscape.com 1999-03-10 22:02:25 +00:00
Родитель d58133810f
Коммит 400bd8b309
2 изменённых файлов: 6 добавлений и 12 удалений

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

@ -908,10 +908,6 @@ XULSortServiceImpl::PrintTreeChildren(nsIContent *container, PRInt32 colIndex, P
// crap
NS_IMETHODIMP
XULSortServiceImpl::DoSort(nsIDOMNode* node, const nsString& sortResource,
const nsString& sortDirection)
@ -925,12 +921,13 @@ XULSortServiceImpl::DoSort(nsIDOMNode* node, const nsString& sortResource,
if (NS_FAILED(rv = FindTreeElement(contentNode, &treeNode))) return(rv);
nsAutoString currentSortDirection;
nsAutoString currentSortResource(sortResource);
sortInfo.db = nsnull;
sortInfo.sortProperty = nsnull;
if (NS_SUCCEEDED(rv = GetSortColumnInfo(treeNode, (nsString &)sortResource, (nsString &)currentSortDirection)))
if (NS_SUCCEEDED(rv = GetSortColumnInfo(treeNode, currentSortResource, currentSortDirection)))
{
char *uri = sortResource.ToNewCString();
char *uri = currentSortResource.ToNewCString();
rv = gRDFService->GetResource(uri, &sortInfo.sortProperty);
delete [] uri;
if (NS_FAILED(rv)) return(rv);

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

@ -908,10 +908,6 @@ XULSortServiceImpl::PrintTreeChildren(nsIContent *container, PRInt32 colIndex, P
// crap
NS_IMETHODIMP
XULSortServiceImpl::DoSort(nsIDOMNode* node, const nsString& sortResource,
const nsString& sortDirection)
@ -925,12 +921,13 @@ XULSortServiceImpl::DoSort(nsIDOMNode* node, const nsString& sortResource,
if (NS_FAILED(rv = FindTreeElement(contentNode, &treeNode))) return(rv);
nsAutoString currentSortDirection;
nsAutoString currentSortResource(sortResource);
sortInfo.db = nsnull;
sortInfo.sortProperty = nsnull;
if (NS_SUCCEEDED(rv = GetSortColumnInfo(treeNode, (nsString &)sortResource, (nsString &)currentSortDirection)))
if (NS_SUCCEEDED(rv = GetSortColumnInfo(treeNode, currentSortResource, currentSortDirection)))
{
char *uri = sortResource.ToNewCString();
char *uri = currentSortResource.ToNewCString();
rv = gRDFService->GetResource(uri, &sortInfo.sortProperty);
delete [] uri;
if (NS_FAILED(rv)) return(rv);