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.
This commit is contained in:
buster@netscape.com
1999-09-13 03:15:23 +00:00
parent 6dbc093604
commit 1901197140

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)) {