making string conversions explicit

git-svn-id: svn://10.0.0.236/trunk@64827 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scc%netscape.com
2000-04-01 00:39:02 +00:00
parent 6501ffa8c2
commit 28db414fa4
17 changed files with 59 additions and 33 deletions

View File

@@ -44,7 +44,10 @@ NSBASEPRINCIPALS_RELEASE(nsSystemPrincipal);
NS_IMETHODIMP
nsSystemPrincipal::ToString(char **result)
{
nsAutoString buf("[System]");
// STRING USE WARNING: perhaps |buf| should be an |nsCAutoString|? -- scc
nsAutoString buf;
buf.AssignWithConversion("[System]");
*result = buf.ToNewCString();
return *result ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
}