diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-03-31 18:20:08 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-03-31 18:20:08 +0200 |
commit | 49a3f5a53793d75cd243936e22f99b798e84c84b (patch) | |
tree | bd6d8a4afd8baf60a35b7d8521f8c50551b76b1a | |
parent | 1bf6a5c7da242bef3e68f95c47173a1db12da7c4 (diff) | |
download | UXP-49a3f5a53793d75cd243936e22f99b798e84c84b.tar UXP-49a3f5a53793d75cd243936e22f99b798e84c84b.tar.gz UXP-49a3f5a53793d75cd243936e22f99b798e84c84b.tar.lz UXP-49a3f5a53793d75cd243936e22f99b798e84c84b.tar.xz UXP-49a3f5a53793d75cd243936e22f99b798e84c84b.zip |
Remove AIX VisualAge C++ compiler bug workaround.
Tag #186
-rw-r--r-- | dom/base/nsAttrAndChildArray.cpp | 9 | ||||
-rw-r--r-- | dom/base/nsMappedAttributes.h | 11 |
2 files changed, 3 insertions, 17 deletions
diff --git a/dom/base/nsAttrAndChildArray.cpp b/dom/base/nsAttrAndChildArray.cpp index b285ee003..9fd27262b 100644 --- a/dom/base/nsAttrAndChildArray.cpp +++ b/dom/base/nsAttrAndChildArray.cpp @@ -78,15 +78,8 @@ GetIndexFromCache(const nsAttrAndChildArray* aArray) } -/** - * Due to a compiler bug in VisualAge C++ for AIX, we need to return the - * address of the first index into mBuffer here, instead of simply returning - * mBuffer itself. - * - * See Bug 231104 for more information. - */ #define ATTRS(_impl) \ - reinterpret_cast<InternalAttr*>(&((_impl)->mBuffer[0])) + reinterpret_cast<InternalAttr*>((_impl)->mBuffer) #define NS_IMPL_EXTRA_SIZE \ 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<const InternalAttr*>(&(mAttrs[0])); + return reinterpret_cast<const InternalAttr*>(mAttrs); } InternalAttr* Attrs() { - return reinterpret_cast<InternalAttr*>(&(mAttrs[0])); + return reinterpret_cast<InternalAttr*>(mAttrs); } uint16_t mAttrCount; |