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:
@@ -892,7 +892,7 @@ nsGfxTextControlFrame::Reflow(nsIPresContext& aPresContext,
|
|||||||
|
|
||||||
// calculate the the desired size for the text control
|
// calculate the the desired size for the text control
|
||||||
// use the suggested size if it has been set
|
// use the suggested size if it has been set
|
||||||
nsresult rv;
|
nsresult rv = NS_OK;
|
||||||
nsHTMLReflowState suggestedReflowState(aReflowState);
|
nsHTMLReflowState suggestedReflowState(aReflowState);
|
||||||
if ((kSuggestedNotSet != mSuggestedWidth) ||
|
if ((kSuggestedNotSet != mSuggestedWidth) ||
|
||||||
(kSuggestedNotSet != mSuggestedHeight)) {
|
(kSuggestedNotSet != mSuggestedHeight)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user