mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-02 21:35:40 +02:00
Fix warning in catch_unique_ptr::bool()
This commit is contained in:

committed by
Martin Hořeňovský

parent
ccabd4de89
commit
fbfd13501c
@@ -92,7 +92,7 @@ namespace Detail {
|
||||
}
|
||||
|
||||
explicit operator bool() const {
|
||||
return m_ptr;
|
||||
return m_ptr != nullptr;
|
||||
}
|
||||
|
||||
friend void swap(unique_ptr& lhs, unique_ptr& rhs) {
|
||||
|
Reference in New Issue
Block a user