Bug 59675: Initialize variables before use, r=nisheeth@netscape.com, sr=jst@netscape.com

git-svn-id: svn://10.0.0.236/trunk@91959 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pollmann%netscape.com
2001-04-11 07:39:48 +00:00
parent 001d626e79
commit 16bc0059c3
2 changed files with 8 additions and 4 deletions

View File

@@ -120,9 +120,10 @@ nsIsIndexFrame::Paint(nsIPresContext* aPresContext,
NS_IMETHODIMP
nsIsIndexFrame::UpdatePromptLabel()
{
nsresult result;
if (!mTextContent) return NS_ERROR_UNEXPECTED;
nsresult result = NS_OK;
// Get the text from the "prompt" attribute.
// If it is zero length, set it to a default value (localized)
nsAutoString prompt;
@@ -370,11 +371,12 @@ nsIsIndexFrame::GetFrameName(nsString& aResult) const
NS_IMETHODIMP
nsIsIndexFrame::OnSubmit(nsIPresContext* aPresContext)
{
nsresult result;
if (!mContent || !mInputContent) {
return NS_ERROR_UNEXPECTED;
}
nsresult result = NS_OK;
// Begin ProcessAsURLEncoded
nsAutoString data;

View File

@@ -120,9 +120,10 @@ nsIsIndexFrame::Paint(nsIPresContext* aPresContext,
NS_IMETHODIMP
nsIsIndexFrame::UpdatePromptLabel()
{
nsresult result;
if (!mTextContent) return NS_ERROR_UNEXPECTED;
nsresult result = NS_OK;
// Get the text from the "prompt" attribute.
// If it is zero length, set it to a default value (localized)
nsAutoString prompt;
@@ -370,11 +371,12 @@ nsIsIndexFrame::GetFrameName(nsString& aResult) const
NS_IMETHODIMP
nsIsIndexFrame::OnSubmit(nsIPresContext* aPresContext)
{
nsresult result;
if (!mContent || !mInputContent) {
return NS_ERROR_UNEXPECTED;
}
nsresult result = NS_OK;
// Begin ProcessAsURLEncoded
nsAutoString data;