>+ nsAutoString newFolderName(EmptyString());
[Strings default to empty...]
>+ while (containsChild) {
>+ rv = ContainsChildNamed(newFolderName, &containsChild);
>+ NS_ENSURE_SUCCESS(rv, rv);
>+ if (!containsChild)
>+ break;
[Weird use of loop condition.]
>+ newFolderName.AppendLiteral("(");
[Could use Append('(');]
>+confirmDuplicateFolderRename=A folder with that name already exists. Would you like to copy the folder under a different name?
You should include the suggested new folder name in the message, otherwise the user will expect to choose the new name.
Comment on attachment 8371072
WIP patch 3
>+ nsAutoString newFolderName( EmptyString( ));
[Strings default to empty...]
>+ while (containsChild) { med(newFolderNa me, &containsChild); SUCCESS( rv, rv);
>+ rv = ContainsChildNa
>+ NS_ENSURE_
>+ if (!containsChild)
>+ break;
[Weird use of loop condition.]
>+ newFolderName. AppendLiteral( "(");
[Could use Append('(');]
>+confirmDuplic ateFolderRename =A folder with that name already exists. Would you like to copy the folder under a different name?
You should include the suggested new folder name in the message, otherwise the user will expect to choose the new name.