mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 877281 part 5. Add a set() method to Rooted. r=terrence
This commit is contained in:
parent
19af9fb8fa
commit
aec6c97d07
@ -579,6 +579,11 @@ class MOZ_STACK_CLASS Rooted : public js::RootedBase<T>
|
|||||||
return ptr;
|
return ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void set(T value) {
|
||||||
|
JS_ASSERT(!js::RootMethods<T>::poisoned(value));
|
||||||
|
ptr = value;
|
||||||
|
}
|
||||||
|
|
||||||
bool operator!=(const T &other) { return ptr != other; }
|
bool operator!=(const T &other) { return ptr != other; }
|
||||||
bool operator==(const T &other) { return ptr == other; }
|
bool operator==(const T &other) { return ptr == other; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user