QV4::Scoped: Use explicit operator bool

Change-Id: Ibf41d6051fe35aac37fb40ca3c499d0daacebc65
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Jüri Valdmann 2018-10-25 14:20:05 +02:00
parent 9755cf48cb
commit b340d8bb88
1 changed files with 1 additions and 4 deletions

View File

@ -406,10 +406,7 @@ struct Scoped
return getPointer();
}
bool operator!() const {
return !ptr->m();
}
operator void *() const {
explicit operator bool() const {
return ptr->m();
}