Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorTim Lyon2025-08-01 16:34:14 +0100
committerMartin Hořeňovský2025-08-02 00:15:06 +0200
commitfbfd13501ca288e5ffeb725328827786abb99d23 (patch)
tree6d82fee8de00fef3fde6b92c5065bdae475725df /src
parentccabd4de891e749f472121497941bb9437b83c2e (diff)
downloadcatch3-fbfd13501ca288e5ffeb725328827786abb99d23.tar.gz
Fix warning in `catch_unique_ptr::bool()`
Diffstat (limited to 'src')
-rw-r--r--src/catch2/internal/catch_unique_ptr.hpp2
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) {