зеркало из https://github.com/mozilla/gecko-dev.git
Bug 59675: Initialize variables before use, r=nisheeth@netscape.com, sr=jst@netscape.com
This commit is contained in:
Родитель
11c364d141
Коммит
7525d6e00f
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче