|this->|-qualify some templated member functions to help some buggy compilers along. No bug, r=bustage in a CLOSED TREE

This commit is contained in:
Jeff Walden 2018-04-13 14:30:23 -07:00
parent eb84122ef9
commit 17998bd2a9

View File

@ -757,14 +757,14 @@ class Node {
template<typename T>
T* as() const {
MOZ_ASSERT(isLive());
MOZ_ASSERT(is<T>());
MOZ_ASSERT(this->is<T>());
return static_cast<T*>(base()->ptr);
}
template<typename T>
T* asOrNull() const {
MOZ_ASSERT(isLive());
return is<T>() ? static_cast<T*>(base()->ptr) : nullptr;
return this->is<T>() ? static_cast<T*>(base()->ptr) : nullptr;
}
// If this node refers to something that can be represented as a JavaScript