mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Just moving a variable declaration to declare it only when needed...
This commit is contained in:
parent
26e414d3ed
commit
733943b5fb
@ -3707,8 +3707,6 @@ nsresult
|
||||
nsXULElement::EnsureContentsGenerated(void) const
|
||||
{
|
||||
if (mLazyState & nsIXULContent::eChildrenMustBeRebuilt) {
|
||||
nsresult rv;
|
||||
|
||||
// Ensure that the element is actually _in_ the document tree;
|
||||
// otherwise, somebody is trying to generate children for a node
|
||||
// that's not currently in the content model.
|
||||
@ -3727,7 +3725,7 @@ nsXULElement::EnsureContentsGenerated(void) const
|
||||
if (! mDocument)
|
||||
return NS_OK;
|
||||
|
||||
rv = rdfDoc->CreateContents(NS_STATIC_CAST(nsIStyledContent*, unconstThis));
|
||||
nsresult rv = rdfDoc->CreateContents(NS_STATIC_CAST(nsIStyledContent*, unconstThis));
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "problem creating kids");
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
}
|
||||
|
@ -3707,8 +3707,6 @@ nsresult
|
||||
nsXULElement::EnsureContentsGenerated(void) const
|
||||
{
|
||||
if (mLazyState & nsIXULContent::eChildrenMustBeRebuilt) {
|
||||
nsresult rv;
|
||||
|
||||
// Ensure that the element is actually _in_ the document tree;
|
||||
// otherwise, somebody is trying to generate children for a node
|
||||
// that's not currently in the content model.
|
||||
@ -3727,7 +3725,7 @@ nsXULElement::EnsureContentsGenerated(void) const
|
||||
if (! mDocument)
|
||||
return NS_OK;
|
||||
|
||||
rv = rdfDoc->CreateContents(NS_STATIC_CAST(nsIStyledContent*, unconstThis));
|
||||
nsresult rv = rdfDoc->CreateContents(NS_STATIC_CAST(nsIStyledContent*, unconstThis));
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "problem creating kids");
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user