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

@@ -311,8 +311,7 @@ nsHTMLEditor::HideGrabber()
NS_ENSURE_TRUE(mGrabber, NS_ERROR_NULL_POINTER);
// get the presshell's document observer interface.
nsCOMPtr<nsIPresShell> ps;
GetPresShell(getter_AddRefs(ps));
nsCOMPtr<nsIPresShell> ps = GetPresShell();
// We allow the pres shell to be null; when it is, we presume there
// are no document observers to notify, but we still want to
// UnbindFromTree.
@@ -428,8 +427,7 @@ nsresult
nsHTMLEditor::EndMoving()
{
if (mPositioningShadow) {
nsCOMPtr<nsIPresShell> ps;
GetPresShell(getter_AddRefs(ps));
nsCOMPtr<nsIPresShell> ps = GetPresShell();
NS_ENSURE_TRUE(ps, NS_ERROR_NOT_INITIALIZED);
nsCOMPtr<nsIDOMNode> parentNode;