Minor clang-tidy fix.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2021-06-21 16:27:06 -07:00 committed by Ralf W. Grosse-Kunstleve
parent 4b872febcc
commit 0e4b38e34d

View File

@ -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