mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-12 22:19:10 +00:00
Consistent const-ing within the file
This commit is contained in:
parent
8ed799bd4d
commit
43ad99595b
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue