From 49a3f5a53793d75cd243936e22f99b798e84c84b Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sun, 31 Mar 2019 18:20:08 +0200 Subject: Remove AIX VisualAge C++ compiler bug workaround. Tag #186 --- dom/base/nsMappedAttributes.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'dom/base/nsMappedAttributes.h') diff --git a/dom/base/nsMappedAttributes.h b/dom/base/nsMappedAttributes.h index 9fa7572dd..f00b888b9 100644 --- a/dom/base/nsMappedAttributes.h +++ b/dom/base/nsMappedAttributes.h @@ -93,20 +93,13 @@ private: nsAttrValue mValue; }; - /** - * Due to a compiler bug in VisualAge C++ for AIX, we need to return the - * address of the first index into mAttrs here, instead of simply - * returning mAttrs itself. - * - * See Bug 231104 for more information. - */ const InternalAttr* Attrs() const { - return reinterpret_cast(&(mAttrs[0])); + return reinterpret_cast(mAttrs); } InternalAttr* Attrs() { - return reinterpret_cast(&(mAttrs[0])); + return reinterpret_cast(mAttrs); } uint16_t mAttrCount; -- cgit v1.2.3