Correct outdated weak_ptr docs (flutter/engine#28356)

This commit is contained in:
nt4f04uNd
2021-09-09 23:12:02 +03:00
committed by GitHub
parent 31087853c9
commit 0a28704999

View File

@@ -246,8 +246,8 @@ class WeakPtrFactory {
flag_->Invalidate();
}
// Gets a new weak pointer, which will be valid until either
// |InvalidateWeakPtrs()| is called or this object is destroyed.
// Gets a new weak pointer, which will be valid until this object is
// destroyed.
WeakPtr<T> GetWeakPtr() const {
return WeakPtr<T>(ptr_, flag_.Clone(), checker_);
}
@@ -282,8 +282,8 @@ class TaskRunnerAffineWeakPtrFactory {
flag_->Invalidate();
}
// Gets a new weak pointer, which will be valid until either
// |InvalidateWeakPtrs()| is called or this object is destroyed.
// Gets a new weak pointer, which will be valid until this object is
// destroyed.
TaskRunnerAffineWeakPtr<T> GetWeakPtr() const {
return TaskRunnerAffineWeakPtr<T>(ptr_, flag_.Clone(), checker_);
}