From 420962b4849a93ccd3a41ac9de562a4a5d5249a5 Mon Sep 17 00:00:00 2001 From: "buster%netscape.com" Date: Fri, 17 Sep 1999 20:17:22 +0000 Subject: [PATCH] fixed a warning --- editor/base/nsTextEditRules.cpp | 2 +- editor/libeditor/text/nsTextEditRules.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/base/nsTextEditRules.cpp b/editor/base/nsTextEditRules.cpp index fffbf480975..8802a7ff675 100644 --- a/editor/base/nsTextEditRules.cpp +++ b/editor/base/nsTextEditRules.cpp @@ -417,7 +417,7 @@ nsTextEditRules::CreateStyleForInsertText(nsIDOMSelection *aSelection, TypeInSta else // we have no selection, so insert a style tag in the body { nsCOMPtr bodyElement; - nsresult res = mEditor->GetBodyElement(getter_AddRefs(bodyElement)); + res = mEditor->GetBodyElement(getter_AddRefs(bodyElement)); if (NS_FAILED(res)) return res; if (!bodyElement) return NS_ERROR_NULL_POINTER; diff --git a/editor/libeditor/text/nsTextEditRules.cpp b/editor/libeditor/text/nsTextEditRules.cpp index fffbf480975..8802a7ff675 100644 --- a/editor/libeditor/text/nsTextEditRules.cpp +++ b/editor/libeditor/text/nsTextEditRules.cpp @@ -417,7 +417,7 @@ nsTextEditRules::CreateStyleForInsertText(nsIDOMSelection *aSelection, TypeInSta else // we have no selection, so insert a style tag in the body { nsCOMPtr bodyElement; - nsresult res = mEditor->GetBodyElement(getter_AddRefs(bodyElement)); + res = mEditor->GetBodyElement(getter_AddRefs(bodyElement)); if (NS_FAILED(res)) return res; if (!bodyElement) return NS_ERROR_NULL_POINTER;