Skip to content

Commit

Permalink
change get() to ptr_
Browse files Browse the repository at this point in the history
  • Loading branch information
扬宁 committed Jan 3, 2024
1 parent f375a95 commit dd0eb7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/butil/memory/ref_counted.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ class scoped_refptr {
ptr_->AddRef();
}

scoped_refptr(scoped_refptr<T>&& r) noexcept : ptr_(r.get()) {
scoped_refptr(scoped_refptr<T>&& r) noexcept : ptr_(r.ptr_) {
if (r.ptr_){
r.ptr_ = nullptr;
}
Expand Down

0 comments on commit dd0eb7a

Please sign in to comment.