From 5816b366ffdfaf3ad1d918cbe9ec9d69864b3e0a Mon Sep 17 00:00:00 2001 From: "jfrancis%netscape.com" Date: Thu, 3 Feb 2000 23:29:09 +0000 Subject: [PATCH] fixing warning; r=akkana --- editor/base/nsEditor.cpp | 7 +------ editor/libeditor/base/nsEditor.cpp | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/editor/base/nsEditor.cpp b/editor/base/nsEditor.cpp index 63537d3bcb25..3f169a20d1b7 100644 --- a/editor/base/nsEditor.cpp +++ b/editor/base/nsEditor.cpp @@ -4369,12 +4369,7 @@ nsresult nsEditor::EndUpdateViewBatch() #else mViewManager->EndUpdateViewBatch(); #endif - nsCOMPtr presShell; - rv = GetPresShell(getter_AddRefs(presShell)); - if (NS_SUCCEEDED(rv) && presShell) - { - presShell->EndBatchingReflows(PR_TRUE); - } + presShell->EndBatchingReflows(PR_TRUE); } } diff --git a/editor/libeditor/base/nsEditor.cpp b/editor/libeditor/base/nsEditor.cpp index 63537d3bcb25..3f169a20d1b7 100644 --- a/editor/libeditor/base/nsEditor.cpp +++ b/editor/libeditor/base/nsEditor.cpp @@ -4369,12 +4369,7 @@ nsresult nsEditor::EndUpdateViewBatch() #else mViewManager->EndUpdateViewBatch(); #endif - nsCOMPtr presShell; - rv = GetPresShell(getter_AddRefs(presShell)); - if (NS_SUCCEEDED(rv) && presShell) - { - presShell->EndBatchingReflows(PR_TRUE); - } + presShell->EndBatchingReflows(PR_TRUE); } }