Update source files for bracket style

This commit is contained in:
Marshall Greenblatt
2023-01-02 17:59:03 -05:00
parent d84b07a5cb
commit 3af3eab3e4
366 changed files with 7275 additions and 3834 deletions

View File

@@ -28,8 +28,9 @@ ScopedClosureRunner::~ScopedClosureRunner() {
}
void ScopedClosureRunner::RunAndReset() {
if (closure_)
if (closure_) {
std::move(closure_).Run();
}
}
void ScopedClosureRunner::ReplaceClosure(OnceClosure closure) {

View File

@@ -68,8 +68,9 @@ WeakReferenceOwner::~WeakReferenceOwner() {
WeakReference WeakReferenceOwner::GetRef() const {
// If we hold the last reference to the Flag then detach the ThreadChecker.
if (!HasRefs())
if (!HasRefs()) {
flag_->DetachFromThread();
}
return WeakReference(flag_);
}