зеркало из https://github.com/mozilla/pjs.git
r=mscott, a=brendan OS/2 bringup - VisualAge treats this like a cast - according to nsFileSpec.h, our way is correct
This commit is contained in:
Родитель
ea7236e0cf
Коммит
83b8bd6fea
|
@ -281,7 +281,7 @@ nsresult nsImapMailFolder::CreateSubFolders(nsFileSpec &path)
|
|||
char *folderName;
|
||||
for (nsDirectoryIterator dir(path, PR_FALSE); dir.Exists(); dir++)
|
||||
{
|
||||
nsFileSpec currentFolderPath = (nsFileSpec&)dir;
|
||||
nsFileSpec currentFolderPath = dir.Spec();
|
||||
folderName = currentFolderPath.GetLeafName();
|
||||
currentFolderNameStr.AssignWithConversion(folderName);
|
||||
if (nsShouldIgnoreFile(currentFolderNameStr))
|
||||
|
|
|
@ -470,7 +470,7 @@ nsMsgLocalMailFolder::CreateSubFolders(nsFileSpec &path)
|
|||
nsCOMPtr<nsIMsgFolder> child;
|
||||
|
||||
for (nsDirectoryIterator dir(path, PR_FALSE); dir.Exists(); dir++) {
|
||||
nsFileSpec currentFolderPath = (nsFileSpec&)dir;
|
||||
nsFileSpec currentFolderPath = dir.Spec();
|
||||
|
||||
currentFolderPath.GetLeafName(currentFolderNameStr);
|
||||
if (nsShouldIgnoreFile(currentFolderNameStr))
|
||||
|
|
Загрузка…
Ссылка в новой задаче