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:
parent
2478c5ea00
commit
5a04ace9f0
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user