Fix silly warnings.

This commit is contained in:
rjc%netscape.com 2000-05-10 07:26:13 +00:00
parent b0d19c19d8
commit 1a44d56fe9

View File

@ -1155,13 +1155,13 @@ FileSystemDataSource::GetFolderList(nsIRDFResource *source, PRBool allowHidden,
PRInt32 aOffset;
while ((aOffset = leaf.FindChar(' ')) >= 0)
{
leaf.Cut(aOffset, 1);
leaf.InsertWithConversion("%20", aOffset);
leaf.Cut((PRUint32)aOffset, 1);
leaf.InsertWithConversion("%20", (PRUint32)aOffset);
}
while ((aOffset = leaf.FindChar('/')) >= 0)
{
leaf.Cut(aOffset, 1);
leaf.InsertWithConversion("%2F", aOffset);
leaf.Cut((PRUint32)aOffset, 1);
leaf.InsertWithConversion("%2F", (PRUint32)aOffset);
}
// append the encoded name