Bug 657210 - Outparamdel nsEditor::GetPresShell; r=ehsan

This commit is contained in:
Ms2ger
2011-05-22 14:43:13 +02:00
parent d7a023a96a
commit 6e37e0981c
11 changed files with 42 additions and 78 deletions

View File

@@ -156,8 +156,7 @@ nsHTMLEditor::CreateAnonymousElement(const nsAString & aTag, nsIDOMNode * aPare
NS_ENSURE_TRUE(doc, NS_ERROR_NULL_POINTER);
// Get the pres shell
nsCOMPtr<nsIPresShell> ps;
GetPresShell(getter_AddRefs(ps));
nsCOMPtr<nsIPresShell> ps = GetPresShell();
NS_ENSURE_TRUE(ps, NS_ERROR_NOT_INITIALIZED);
// Create a new node through the element factory