diff options
| author | Tim Lyon | 2025-08-01 16:34:14 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2025-08-02 00:15:06 +0200 |
| commit | fbfd13501ca288e5ffeb725328827786abb99d23 (patch) | |
| tree | 6d82fee8de00fef3fde6b92c5065bdae475725df | |
| parent | ccabd4de891e749f472121497941bb9437b83c2e (diff) | |
| download | catch3-fbfd13501ca288e5ffeb725328827786abb99d23.tar.gz | |
Fix warning in `catch_unique_ptr::bool()`
| -rw-r--r-- | src/catch2/internal/catch_unique_ptr.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_unique_ptr.hpp b/src/catch2/internal/catch_unique_ptr.hpp index 49cbc785..8add2a8d 100644 --- a/src/catch2/internal/catch_unique_ptr.hpp +++ b/src/catch2/internal/catch_unique_ptr.hpp @@ -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) { |