|this->|-qualify some templated member functions to help some buggy compilers along. No bug, r=me
authorJeff Walden <jwalden@mit.edu>
Fri, 13 Apr 2018 14:30:23 -0700
changeset 466907 e8dbd4f14fc5a198d538067588c0be88edd8e735
parent 466906 7aad6439880b6b1fb8e6c0d7b358a1a0dd272582
child 466908 5be9aada3037ef8bce52a8dae0995581af757c71
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|this->|-qualify some templated member functions to help some buggy compilers along. No bug, r=me
js/public/UbiNode.h
--- a/js/public/UbiNode.h
+++ b/js/public/UbiNode.h
@@ -752,24 +752,24 @@ class Node {
     template<typename T>
     bool is() const {
         return base()->typeName() == canonicalTypeName<T>();
     }
 
     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
     // value that is safe to expose to JavaScript code, return that value.
     // Otherwise return UndefinedValue(). JSStrings, JS::Symbols, and some (but
     // not all!) JSObjects can be exposed.
     JS::Value exposeToJS() const;