mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Fix silly warnings.
This commit is contained in:
parent
b0d19c19d8
commit
1a44d56fe9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user