fix: modernize-use-nodiscard clang-tidy warnings (32-x-y backport) (#44846)
fix: modernize-use-nodiscard clang-tidy warnings (#44808)
This commit is contained in:
parent
d1639ccb79
commit
10e0ce0692
8 changed files with 14 additions and 13 deletions
|
@ -88,7 +88,7 @@ class RefCountedGlobal
|
|||
RefCountedGlobal(v8::Isolate* isolate, v8::Local<v8::Value> value)
|
||||
: handle_(isolate, value.As<T>()) {}
|
||||
|
||||
bool IsAlive() const { return !handle_.IsEmpty(); }
|
||||
[[nodiscard]] bool IsAlive() const { return !handle_.IsEmpty(); }
|
||||
|
||||
v8::Local<T> NewHandle(v8::Isolate* isolate) const {
|
||||
return v8::Local<T>::New(isolate, handle_);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue