Bug 53057: [API] turn off implicit |CharT*| conversion operators for nsCString, rr=dbaron, rs=scc

git-svn-id: svn://10.0.0.236/trunk@106157 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jaggernaut%netscape.com
2001-10-24 09:06:49 +00:00
parent 2f1eb6d907
commit 238eb280fb
4 changed files with 9 additions and 8 deletions

View File

@@ -1438,7 +1438,7 @@ NS_IMETHODIMP nsLocalFile::GetURL(char * *aURL)
// make sure we have a trailing slash
escPath += "/";
}
*aURL = nsCRT::strdup((const char *)escPath);
*aURL = ToNewCString(escPath);
rv = *aURL ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
}
}
@@ -1479,7 +1479,7 @@ NS_IMETHODIMP nsLocalFile::SetURL(const char * aURL)
nsUnescape((char*)path.get());
rv = InitWithPath(path);
rv = InitWithPath(path.get());
return rv;
}