From 95b65d4e20a7486bb1149bf1d86f1eb5b8448288 Mon Sep 17 00:00:00 2001 From: "pollmann%netscape.com" Date: Tue, 2 Mar 1999 03:22:45 +0000 Subject: [PATCH] Cleanup: return NS_NOINTERFACE not NS_OK if getting the primary frame fails. git-svn-id: svn://10.0.0.236/trunk@22515 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/content/src/nsGenericHTMLElement.cpp | 2 +- mozilla/layout/html/content/src/nsGenericHTMLElement.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/content/html/content/src/nsGenericHTMLElement.cpp b/mozilla/content/html/content/src/nsGenericHTMLElement.cpp index 804b237e950..aafeb1e6dea 100644 --- a/mozilla/content/html/content/src/nsGenericHTMLElement.cpp +++ b/mozilla/content/html/content/src/nsGenericHTMLElement.cpp @@ -1419,7 +1419,7 @@ nsGenericHTMLElement::GetPrimaryFrame(nsIHTMLContent* aContent, nsIFormControlFrame *&aFormControlFrame) { nsIDocument* doc = nsnull; - nsresult res = NS_OK; + nsresult res = NS_NOINTERFACE; // Get the document if (NS_OK == aContent->GetDocument(doc)) { if (nsnull != doc) { diff --git a/mozilla/layout/html/content/src/nsGenericHTMLElement.cpp b/mozilla/layout/html/content/src/nsGenericHTMLElement.cpp index 804b237e950..aafeb1e6dea 100644 --- a/mozilla/layout/html/content/src/nsGenericHTMLElement.cpp +++ b/mozilla/layout/html/content/src/nsGenericHTMLElement.cpp @@ -1419,7 +1419,7 @@ nsGenericHTMLElement::GetPrimaryFrame(nsIHTMLContent* aContent, nsIFormControlFrame *&aFormControlFrame) { nsIDocument* doc = nsnull; - nsresult res = NS_OK; + nsresult res = NS_NOINTERFACE; // Get the document if (NS_OK == aContent->GetDocument(doc)) { if (nsnull != doc) {