Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=jag, rs=scc

This commit is contained in:
dbaron%fas.harvard.edu 2001-11-11 01:52:04 +00:00
Родитель 58bfb374e8
Коммит 051ebb5472
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -191,7 +191,7 @@ NS_IMETHODIMP nsFilePicker::Show(PRInt16 *retval)
NS_ENSURE_TRUE(file, NS_ERROR_FAILURE);
file->InitWithPath(mFile);
file->InitWithPath(mFile.get());
PRBool exists = PR_FALSE;
file->Exists(&exists);
@ -219,7 +219,7 @@ NS_IMETHODIMP nsFilePicker::GetFile(nsILocalFile **aFile)
NS_ENSURE_TRUE(file, NS_ERROR_FAILURE);
file->InitWithPath(mFile);
file->InitWithPath(mFile.get());
NS_ADDREF(*aFile = file);
@ -231,7 +231,7 @@ NS_IMETHODIMP nsFilePicker::GetFileURL(nsIFileURL **aFileURL)
{
nsCOMPtr<nsILocalFile> file(do_CreateInstance("@mozilla.org/file/local;1"));
NS_ENSURE_TRUE(file, NS_ERROR_FAILURE);
file->InitWithPath(mFile);
file->InitWithPath(mFile.get());
nsCOMPtr<nsIURI> uri;
NS_NewFileURI(getter_AddRefs(uri), file);