]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/include/bits/shared_ptr.h
Only set std::enable_shared_from_this member once.
[thirdparty/gcc.git] / libstdc++-v3 / include / bits / shared_ptr.h
index f96c07835b625b60d32fb96a6d901a0aa299589a..2413b1b8e101ee2e46b66113644f245fcf129767 100644 (file)
@@ -588,7 +588,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
                                         const enable_shared_from_this* __pe,
                                         const _Tp1* __px) noexcept
        {
-         if (__pe != 0)
+         if (__pe != nullptr)
            __pe->_M_weak_assign(const_cast<_Tp1*>(__px), __pn);
        }