зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
73ab4de412
Коммит
2dc8e95d18
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче