mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
checking in for scc.
bug #85271: sr=waterson, r={beard, jag, dbaron}, a=asa. Eliminate features of |nsXPIDLC?String| that keep it out of the string hierarchy (i.e., using assigment to rebind ownership, static |Copy| members, and |getter_Shares|), fixing some leaks in the process.
This commit is contained in:
parent
a5e3f194e4
commit
844f8c5e95
@ -173,7 +173,7 @@ nsNSSSocketInfo::SetFirstWrite(PRBool aFirstWrite)
|
||||
nsresult
|
||||
nsNSSSocketInfo::SetHostName(const char* host)
|
||||
{
|
||||
mHostName = host;
|
||||
mHostName.Adopt(nsCRT::strdup(host));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@ -201,7 +201,7 @@ nsNSSSocketInfo::GetPort(PRInt32 *aPort)
|
||||
nsresult
|
||||
nsNSSSocketInfo::SetProxyHost(const char* aProxyHost)
|
||||
{
|
||||
mProxyHostName = aProxyHost;
|
||||
mProxyHostName.Adopt(nsCRT::strdup(aProxyHost));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user