QV4::Scoped: Use explicit operator bool
Change-Id: Ibf41d6051fe35aac37fb40ca3c499d0daacebc65 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
9755cf48cb
commit
b340d8bb88
|
@ -406,10 +406,7 @@ struct Scoped
|
||||||
return getPointer();
|
return getPointer();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator!() const {
|
explicit operator bool() const {
|
||||||
return !ptr->m();
|
|
||||||
}
|
|
||||||
operator void *() const {
|
|
||||||
return ptr->m();
|
return ptr->m();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue