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