Get rid of a few warnings.

This commit is contained in:
rjc%netscape.com 1999-05-18 06:34:15 +00:00
parent 70bf5173d4
commit b0cf560690
2 changed files with 6 additions and 6 deletions

View File

@ -982,14 +982,14 @@ XULSortServiceImpl::SortTreeChildren(nsIContent *container, PRInt32 colIndex, so
PRUint32 cnt = 0;
rv = childArray->Count(&cnt);
NS_ASSERTION(NS_SUCCEEDED(rv), "Count failed");
unsigned long numElements = cnt;
PRUint32 numElements = cnt;
if (numElements > 0)
{
nsIContent ** flatArray = new nsIContent*[numElements];
if (flatArray)
{
// flatten array of resources, sort them, then add as tree elements
unsigned long loop;
PRUint32 loop;
for (loop=0; loop<numElements; loop++)
{
flatArray[loop] = (nsIContent *)childArray->ElementAt(loop);
@ -998,7 +998,7 @@ XULSortServiceImpl::SortTreeChildren(nsIContent *container, PRInt32 colIndex, so
/* smart sorting (sort within separators) on name column */
if (sortInfo->sortProperty == kNC_Name)
{
PRInt32 startIndex=0;
PRUint32 startIndex=0;
for (loop=0; loop<numElements; loop++)
{
nsAutoString type;

View File

@ -982,14 +982,14 @@ XULSortServiceImpl::SortTreeChildren(nsIContent *container, PRInt32 colIndex, so
PRUint32 cnt = 0;
rv = childArray->Count(&cnt);
NS_ASSERTION(NS_SUCCEEDED(rv), "Count failed");
unsigned long numElements = cnt;
PRUint32 numElements = cnt;
if (numElements > 0)
{
nsIContent ** flatArray = new nsIContent*[numElements];
if (flatArray)
{
// flatten array of resources, sort them, then add as tree elements
unsigned long loop;
PRUint32 loop;
for (loop=0; loop<numElements; loop++)
{
flatArray[loop] = (nsIContent *)childArray->ElementAt(loop);
@ -998,7 +998,7 @@ XULSortServiceImpl::SortTreeChildren(nsIContent *container, PRInt32 colIndex, so
/* smart sorting (sort within separators) on name column */
if (sortInfo->sortProperty == kNC_Name)
{
PRInt32 startIndex=0;
PRUint32 startIndex=0;
for (loop=0; loop<numElements; loop++)
{
nsAutoString type;