mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 10:15:41 +00:00
update to sync with nsString2
This commit is contained in:
parent
8551ad66c9
commit
a059047f9d
@ -895,11 +895,11 @@ nsHTMLEditor::GetSelectedElement(const nsString& aTagName, nsIDOMElement** aRetu
|
||||
nsString tmpText;
|
||||
if( aTagName == "HREF")
|
||||
{
|
||||
if (NS_SUCCEEDED(anchor->GetHref(tmpText)) && tmpText && tmpText != "")
|
||||
if (NS_SUCCEEDED(anchor->GetHref(tmpText)) && tmpText.GetUnicode() && tmpText.Length() != 0)
|
||||
bNodeFound = PR_TRUE;
|
||||
} else if (aTagName == "ANCHOR")
|
||||
{
|
||||
if (NS_SUCCEEDED(anchor->GetName(tmpText)) && tmpText && tmpText != "")
|
||||
if (NS_SUCCEEDED(anchor->GetName(tmpText)) && tmpText.GetUnicode() && tmpText.Length() != 0)
|
||||
bNodeFound = PR_TRUE;
|
||||
}
|
||||
}
|
||||
|
@ -895,11 +895,11 @@ nsHTMLEditor::GetSelectedElement(const nsString& aTagName, nsIDOMElement** aRetu
|
||||
nsString tmpText;
|
||||
if( aTagName == "HREF")
|
||||
{
|
||||
if (NS_SUCCEEDED(anchor->GetHref(tmpText)) && tmpText && tmpText != "")
|
||||
if (NS_SUCCEEDED(anchor->GetHref(tmpText)) && tmpText.GetUnicode() && tmpText.Length() != 0)
|
||||
bNodeFound = PR_TRUE;
|
||||
} else if (aTagName == "ANCHOR")
|
||||
{
|
||||
if (NS_SUCCEEDED(anchor->GetName(tmpText)) && tmpText && tmpText != "")
|
||||
if (NS_SUCCEEDED(anchor->GetName(tmpText)) && tmpText.GetUnicode() && tmpText.Length() != 0)
|
||||
bNodeFound = PR_TRUE;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user