Commit c93f9a04 authored by Yannic Bonenberger's avatar Yannic Bonenberger Committed by Commit Bot

Apply base_bind_rewriters to //base/callback.h

*** Note: There is no behavior change from this patch. ***

Bug: 714018
Change-Id: I9969eec66114931542e927758553118ebe3a4f2e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1778494Reviewed-by: default avatarMark Mentovai <mark@chromium.org>
Commit-Queue: Yannic Bonenberger <contact@yannic-bonenberger.com>
Auto-Submit: Yannic Bonenberger <contact@yannic-bonenberger.com>
Cr-Commit-Position: refs/heads/master@{#694592}
parent d1177009
...@@ -140,7 +140,7 @@ class RepeatingCallback<R(Args...)> : public internal::CallbackBaseCopyable { ...@@ -140,7 +140,7 @@ class RepeatingCallback<R(Args...)> : public internal::CallbackBaseCopyable {
RepeatingCallback cb = std::move(*this); RepeatingCallback cb = std::move(*this);
PolymorphicInvoke f = PolymorphicInvoke f =
reinterpret_cast<PolymorphicInvoke>(cb.polymorphic_invoke()); reinterpret_cast<PolymorphicInvoke>(cb.polymorphic_invoke());
return f(cb.bind_state_.get(), std::forward<Args>(args)...); return f(std::move(cb).bind_state_.get(), std::forward<Args>(args)...);
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment