From 0e4b38e34dc49820369f2d2eb3d4cb2ddc54d6b4 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 21 Jun 2021 16:27:06 -0700 Subject: [PATCH] Minor clang-tidy fix. --- tests/test_class_sh_shared_from_this.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_class_sh_shared_from_this.cpp b/tests/test_class_sh_shared_from_this.cpp index 442b80c48..0aee45bbe 100644 --- a/tests/test_class_sh_shared_from_this.cpp +++ b/tests/test_class_sh_shared_from_this.cpp @@ -111,7 +111,7 @@ struct RescuingDeleter { PyWrapper *pyw; explicit RescuingDeleter(PyWrapper *pyw) : pyw{pyw} {} void operator()(ToBeWrapped *raw_ptr) { - if (pyw->self.get() != nullptr) { + if (pyw->self != nullptr) { #if defined(__cpp_lib_enable_shared_from_this) && (!defined(_MSC_VER) || _MSC_VER >= 1912) assert(raw_ptr->weak_from_this().expired()); // CRITICAL #endif