mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1210924 - Do not fire read barriers when using ReadBarriered in a boolean context; r=sfink
This commit is contained in:
parent
48a2601390
commit
2cb88d17ac
@ -577,6 +577,10 @@ class ReadBarriered : public ReadBarrieredBase<T>
|
||||
return this->value;
|
||||
}
|
||||
|
||||
explicit operator bool() const {
|
||||
return bool(this->value);
|
||||
}
|
||||
|
||||
operator const T() const { return get(); }
|
||||
|
||||
const T operator->() const { return get(); }
|
||||
|
Loading…
Reference in New Issue
Block a user