From e3942e71d637d5ff8270ff8e57e8f5b4ceaacb2b Mon Sep 17 00:00:00 2001 From: "sfraser%netscape.com" Date: Thu, 1 Apr 1999 23:54:23 +0000 Subject: [PATCH] Declare functions static to fix warnings. git-svn-id: svn://10.0.0.236/trunk@25952 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/document/src/nsHTMLDocument.cpp | 6 +++--- mozilla/layout/html/document/src/nsHTMLDocument.cpp | 6 +++--- mozilla/layout/html/table/src/nsTableRowGroupFrame.cpp | 2 +- mozilla/layout/tables/nsTableRowGroupFrame.cpp | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mozilla/content/html/document/src/nsHTMLDocument.cpp b/mozilla/content/html/document/src/nsHTMLDocument.cpp index fe6b0e44551..034fcd3232b 100644 --- a/mozilla/content/html/document/src/nsHTMLDocument.cpp +++ b/mozilla/content/html/document/src/nsHTMLDocument.cpp @@ -1742,7 +1742,7 @@ nsHTMLDocument::GetScriptObject(nsIScriptContext *aContext, void** aScriptObject //---------------------------- -PRBool IsInline(eHTMLTags aTag) +static PRBool IsInline(eHTMLTags aTag) { PRBool result = PR_FALSE; @@ -1789,7 +1789,7 @@ PRBool IsInline(eHTMLTags aTag) } //---------------------------- -PRBool IsBlockLevel(eHTMLTags aTag, PRBool &isPreTag) +static PRBool IsBlockLevel(eHTMLTags aTag, PRBool &isPreTag) { isPreTag = (aTag == eHTMLTag_pre); @@ -2335,7 +2335,7 @@ void printDOMRefs(nsIDOMNode * aNode, PRInt32 aLevel) -nsIDOMNode * FindDOMNode(nsIDOMNode * aNode, nsIContent * aContent) +static nsIDOMNode * FindDOMNode(nsIDOMNode * aNode, nsIContent * aContent) { nsIContent* content; nsresult rv = aNode->QueryInterface(kIContentIID,(void **)&content); diff --git a/mozilla/layout/html/document/src/nsHTMLDocument.cpp b/mozilla/layout/html/document/src/nsHTMLDocument.cpp index fe6b0e44551..034fcd3232b 100644 --- a/mozilla/layout/html/document/src/nsHTMLDocument.cpp +++ b/mozilla/layout/html/document/src/nsHTMLDocument.cpp @@ -1742,7 +1742,7 @@ nsHTMLDocument::GetScriptObject(nsIScriptContext *aContext, void** aScriptObject //---------------------------- -PRBool IsInline(eHTMLTags aTag) +static PRBool IsInline(eHTMLTags aTag) { PRBool result = PR_FALSE; @@ -1789,7 +1789,7 @@ PRBool IsInline(eHTMLTags aTag) } //---------------------------- -PRBool IsBlockLevel(eHTMLTags aTag, PRBool &isPreTag) +static PRBool IsBlockLevel(eHTMLTags aTag, PRBool &isPreTag) { isPreTag = (aTag == eHTMLTag_pre); @@ -2335,7 +2335,7 @@ void printDOMRefs(nsIDOMNode * aNode, PRInt32 aLevel) -nsIDOMNode * FindDOMNode(nsIDOMNode * aNode, nsIContent * aContent) +static nsIDOMNode * FindDOMNode(nsIDOMNode * aNode, nsIContent * aContent) { nsIContent* content; nsresult rv = aNode->QueryInterface(kIContentIID,(void **)&content); diff --git a/mozilla/layout/html/table/src/nsTableRowGroupFrame.cpp b/mozilla/layout/html/table/src/nsTableRowGroupFrame.cpp index 779dba7411e..b1690cec604 100644 --- a/mozilla/layout/html/table/src/nsTableRowGroupFrame.cpp +++ b/mozilla/layout/html/table/src/nsTableRowGroupFrame.cpp @@ -506,7 +506,7 @@ NS_METHOD nsTableRowGroupFrame::PullUpAllRowFrames(nsIPresContext& aPresContext) return NS_OK; } -void GetNextRowSibling(nsIFrame** aRowFrame) +static void GetNextRowSibling(nsIFrame** aRowFrame) { nsresult rv = (*aRowFrame)->GetNextSibling(aRowFrame); while(*aRowFrame && (NS_SUCCEEDED(rv))) { diff --git a/mozilla/layout/tables/nsTableRowGroupFrame.cpp b/mozilla/layout/tables/nsTableRowGroupFrame.cpp index 779dba7411e..b1690cec604 100644 --- a/mozilla/layout/tables/nsTableRowGroupFrame.cpp +++ b/mozilla/layout/tables/nsTableRowGroupFrame.cpp @@ -506,7 +506,7 @@ NS_METHOD nsTableRowGroupFrame::PullUpAllRowFrames(nsIPresContext& aPresContext) return NS_OK; } -void GetNextRowSibling(nsIFrame** aRowFrame) +static void GetNextRowSibling(nsIFrame** aRowFrame) { nsresult rv = (*aRowFrame)->GetNextSibling(aRowFrame); while(*aRowFrame && (NS_SUCCEEDED(rv))) {