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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user