mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
|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:
parent
eb84122ef9
commit
17998bd2a9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user