diff options
Diffstat (limited to 'gfx/2d/BasePoint3D.h')
-rw-r--r-- | gfx/2d/BasePoint3D.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gfx/2d/BasePoint3D.h b/gfx/2d/BasePoint3D.h index a5fb266d5..c64ea247a 100644 --- a/gfx/2d/BasePoint3D.h +++ b/gfx/2d/BasePoint3D.h @@ -6,6 +6,8 @@ #ifndef MOZILLA_BASEPOINT3D_H_ #define MOZILLA_BASEPOINT3D_H_ +#include "mozilla/Assertions.h" + namespace mozilla { namespace gfx { @@ -29,12 +31,12 @@ struct BasePoint3D { // compiler generated default assignment operator T& operator[](int aIndex) { - NS_ABORT_IF_FALSE(aIndex >= 0 && aIndex <= 2, "Invalid array index"); + MOZ_ASSERT(aIndex >= 0 && aIndex <= 2); return *((&x)+aIndex); } const T& operator[](int aIndex) const { - NS_ABORT_IF_FALSE(aIndex >= 0 && aIndex <= 2, "Invalid array index"); + MOZ_ASSERT(aIndex >= 0 && aIndex <= 2); return *((&x)+aIndex); } |