fixed an uninitialized variabled error. the result code in Reflow is

now initialized to NS_OK, because it's not used in all reflow paths.


git-svn-id: svn://10.0.0.236/trunk@47087 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
buster%netscape.com
1999-09-13 03:15:23 +00:00
parent 98dbc40cfb
commit 28227a5fcb

View File

@@ -892,7 +892,7 @@ nsGfxTextControlFrame::Reflow(nsIPresContext& aPresContext,
// calculate the the desired size for the text control
// use the suggested size if it has been set
nsresult rv;
nsresult rv = NS_OK;
nsHTMLReflowState suggestedReflowState(aReflowState);
if ((kSuggestedNotSet != mSuggestedWidth) ||
(kSuggestedNotSet != mSuggestedHeight)) {