removed calls to deprecated string methods

git-svn-id: svn://10.0.0.236/trunk@62707 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
2000-03-12 09:14:14 +00:00
parent cca1bf41ed
commit 1bd57cb94b
124 changed files with 462 additions and 581 deletions

View File

@@ -365,7 +365,7 @@ nsHTMLDocument::Reset(nsIChannel* aChannel, nsILoadGroup* aLoadGroup)
NS_IMETHODIMP
nsHTMLDocument::GetContentType(nsString& aContentType) const
{
aContentType.SetString("text/html");
aContentType.Assign("text/html");
return NS_OK;
}
@@ -531,7 +531,7 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand,
"%c",
#endif
&prtime);
lastModified.SetString(buf);
lastModified.Assign(buf);
SetLastModified(lastModified);
}
@@ -1469,7 +1469,7 @@ nsHTMLDocument::GetDomain(nsString& aDomain)
char *hostName;
if (NS_FAILED(uri->GetHost(&hostName)))
return NS_ERROR_FAILURE;
aDomain.SetString(hostName);
aDomain.Assign(hostName);
nsCRT::free(hostName);
return NS_OK;
@@ -2288,7 +2288,7 @@ nsHTMLDocument::GetLastModified(nsString& aLastModified)
aLastModified = *mLastModified;
}
else {
aLastModified.SetString("January 1, 1970 GMT");
aLastModified.Assign("January 1, 1970 GMT");
}
return NS_OK;