nsIRequest->GetName() now directly uses nsCString msg. No longer needs string conversion.

git-svn-id: svn://10.0.0.236/trunk@117529 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
depstein%netscape.com 2002-03-26 23:55:54 +00:00
parent 2478c5ea00
commit 5a04ace9f0

View File

@ -215,13 +215,12 @@ void FormatAndPrintOutput(const char *theInput, int theVar, int outputMode)
void RequestName(nsIRequest *request, nsCString &stringMsg,
int displayMethod)
{
nsXPIDLString theReqName;
nsresult rv;
rv = request->GetName(getter_Copies(theReqName));
rv = request->GetName(stringMsg);
if(NS_SUCCEEDED(rv))
{
stringMsg.AssignWithConversion(theReqName);
FormatAndPrintOutput("nsIRequest: The request name = ", stringMsg.get(), displayMethod);
}
else