mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update source files for bracket style
This commit is contained in:
@@ -28,8 +28,9 @@ ScopedClosureRunner::~ScopedClosureRunner() {
|
||||
}
|
||||
|
||||
void ScopedClosureRunner::RunAndReset() {
|
||||
if (closure_)
|
||||
if (closure_) {
|
||||
std::move(closure_).Run();
|
||||
}
|
||||
}
|
||||
|
||||
void ScopedClosureRunner::ReplaceClosure(OnceClosure closure) {
|
||||
|
@@ -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_);
|
||||
}
|
||||
|
Reference in New Issue
Block a user