Consistent const-ing within the file

This commit is contained in:
Steven Dee (Jōshin) 2025-04-18 00:49:23 -07:00
parent 8ed799bd4d
commit 43ad99595b
No known key found for this signature in database

View file

@ -382,7 +382,7 @@ class weak_ptr
rc->keep_weak(); rc->keep_weak();
} }
weak_ptr(weak_ptr const& r) noexcept : p(r.p), rc(r.rc) weak_ptr(const weak_ptr& r) noexcept : p(r.p), rc(r.rc)
{ {
if (rc) if (rc)
rc->keep_weak(); rc->keep_weak();
@ -390,7 +390,7 @@ class weak_ptr
template<typename U> template<typename U>
requires __::shared_ptr_compatible<T, U> requires __::shared_ptr_compatible<T, U>
weak_ptr(weak_ptr<U> const& r) noexcept : p(r.p), rc(r.rc) weak_ptr(const weak_ptr<U>& r) noexcept : p(r.p), rc(r.rc)
{ {
if (rc) if (rc)
rc->keep_weak(); rc->keep_weak();