From 6c9f342a36094a0cb2ccd20663ea2601c64244a7 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Thu, 29 Mar 2012 23:12:55 +0200 Subject: [PATCH] No bug - Remove an always-true check. --- content/svg/content/src/DOMSVGTests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/svg/content/src/DOMSVGTests.cpp b/content/svg/content/src/DOMSVGTests.cpp index 77e4bdcddafa..abfc4167e6cf 100644 --- a/content/svg/content/src/DOMSVGTests.cpp +++ b/content/svg/content/src/DOMSVGTests.cpp @@ -261,8 +261,8 @@ DOMSVGTests::GetAttrName(PRUint8 aAttrEnum) const void DOMSVGTests::GetAttrValue(PRUint8 aAttrEnum, nsAttrValue& aValue) const { - NS_ABORT_IF_FALSE(aAttrEnum >= 0 && aAttrEnum < ArrayLength(sStringListNames), - "aAttrEnum out of range"); + MOZ_ASSERT(aAttrEnum < ArrayLength(sStringListNames), + "aAttrEnum out of range"); aValue.SetTo(mStringListAttributes[aAttrEnum], nsnull); }