diff --git a/layout/tools/layout-debug/src/nsLayoutDebuggingTools.cpp b/layout/tools/layout-debug/src/nsLayoutDebuggingTools.cpp index 4222dee90639..d8860030a6f7 100644 --- a/layout/tools/layout-debug/src/nsLayoutDebuggingTools.cpp +++ b/layout/tools/layout-debug/src/nsLayoutDebuggingTools.cpp @@ -307,7 +307,7 @@ nsLayoutDebuggingTools::SetReflowCounts(bool aShow) static void DumpAWebShell(nsIDocShellTreeItem* aShellItem, FILE* out, int32_t aIndent) { - nsXPIDLString name; + nsString name; nsCOMPtr parent; int32_t i, n; @@ -315,7 +315,7 @@ static void DumpAWebShell(nsIDocShellTreeItem* aShellItem, FILE* out, int32_t aI fprintf(out, " "); fprintf(out, "%p '", static_cast(aShellItem)); - aShellItem->GetName(getter_Copies(name)); + aShellItem->GetName(name); aShellItem->GetSameTypeParent(getter_AddRefs(parent)); fputs(NS_LossyConvertUTF16toASCII(name).get(), out); fprintf(out, "' parent=%p <\n", static_cast(parent));