зеркало из https://github.com/mozilla/pjs.git
fixed a warning
This commit is contained in:
Родитель
15d1901d7b
Коммит
420962b484
|
@ -417,7 +417,7 @@ nsTextEditRules::CreateStyleForInsertText(nsIDOMSelection *aSelection, TypeInSta
|
||||||
else // we have no selection, so insert a style tag in the body
|
else // we have no selection, so insert a style tag in the body
|
||||||
{
|
{
|
||||||
nsCOMPtr<nsIDOMElement> bodyElement;
|
nsCOMPtr<nsIDOMElement> bodyElement;
|
||||||
nsresult res = mEditor->GetBodyElement(getter_AddRefs(bodyElement));
|
res = mEditor->GetBodyElement(getter_AddRefs(bodyElement));
|
||||||
if (NS_FAILED(res)) return res;
|
if (NS_FAILED(res)) return res;
|
||||||
if (!bodyElement) return NS_ERROR_NULL_POINTER;
|
if (!bodyElement) return NS_ERROR_NULL_POINTER;
|
||||||
|
|
||||||
|
|
|
@ -417,7 +417,7 @@ nsTextEditRules::CreateStyleForInsertText(nsIDOMSelection *aSelection, TypeInSta
|
||||||
else // we have no selection, so insert a style tag in the body
|
else // we have no selection, so insert a style tag in the body
|
||||||
{
|
{
|
||||||
nsCOMPtr<nsIDOMElement> bodyElement;
|
nsCOMPtr<nsIDOMElement> bodyElement;
|
||||||
nsresult res = mEditor->GetBodyElement(getter_AddRefs(bodyElement));
|
res = mEditor->GetBodyElement(getter_AddRefs(bodyElement));
|
||||||
if (NS_FAILED(res)) return res;
|
if (NS_FAILED(res)) return res;
|
||||||
if (!bodyElement) return NS_ERROR_NULL_POINTER;
|
if (!bodyElement) return NS_ERROR_NULL_POINTER;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче