Fix windows build problem. you can't delete a const char * without casting i.. I changed the codeto use a nsAutoCString.

This commit is contained in:
mscott%netscape.com 1999-04-28 06:21:58 +00:00
Родитель a45b97d9ea
Коммит a23d526f99
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -459,9 +459,7 @@ NS_IMETHODIMP nsMsgLocalMailFolder::BuildFolderURL(char **url)
nsresult rv = GetPath(path);
if (NS_FAILED(rv)) return rv;
nsAutoString tmpPath((nsFilePath)path);
const char *pathName = tmpPath.ToNewCString();
*url = PR_smprintf("%s%s", urlScheme, pathName);
delete [] pathName;
*url = PR_smprintf("%s%s", urlScheme, nsAutoCString(tmpPath));
return NS_OK;
}