bug 100649: Length() being used where IsEmpty() is meant
treewide changes to convert incorrect usages of string.Length() to string.IsEmpty(). thanks to afatecha@idea.com.py (Ariel Fatecha) for the patch. r=dwitte, sr=jst. got the ok from Asa to land into a closed tree. git-svn-id: svn://10.0.0.236/trunk@142828 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -772,11 +772,11 @@ PRBool nsHTMLFrameInnerFrame::GetURL(nsIContent* aContent, nsString& aResult)
|
||||
|
||||
if (type.get() == nsHTMLAtoms::object) {
|
||||
if (NS_CONTENT_ATTR_HAS_VALUE == (aContent->GetAttr(kNameSpaceID_None, nsHTMLAtoms::data, aResult)))
|
||||
if (aResult.Length() > 0)
|
||||
if (!aResult.IsEmpty())
|
||||
return PR_TRUE;
|
||||
}else
|
||||
if (NS_CONTENT_ATTR_HAS_VALUE == (aContent->GetAttr(kNameSpaceID_None, nsHTMLAtoms::src, aResult)))
|
||||
if (aResult.Length() > 0)
|
||||
if (!aResult.IsEmpty())
|
||||
return PR_TRUE;
|
||||
|
||||
return PR_FALSE;
|
||||
@@ -787,7 +787,7 @@ PRBool nsHTMLFrameInnerFrame::GetName(nsIContent* aContent, nsString& aResult)
|
||||
aResult.SetLength(0);
|
||||
|
||||
if (NS_CONTENT_ATTR_HAS_VALUE == (aContent->GetAttr(kNameSpaceID_None, nsHTMLAtoms::name, aResult))) {
|
||||
if (aResult.Length() > 0) {
|
||||
if (!aResult.IsEmpty()) {
|
||||
return PR_TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user