commit | 22c36ab6b4c1b42a12958d6c88452d039a28b6f8 | [log] [tgz] |
---|---|---|
author | William A. Kennington III <wak@google.com> | Tue Oct 30 19:50:57 2018 -0700 |
committer | William A. Kennington III <wak@google.com> | Mon Nov 05 11:49:15 2018 -0800 |
tree | df36483efa62cd5a15dcd1263b468e6530b6d514 | |
parent | c0c5f07f38820184cde4ce5bf55ddaee94fc4199 [diff] |
Prefer bind over method call in lambda This reduces a layer of indirection since the function can be called directly instead of indirectly accessing it with the lambda. It also makes the instantiation more flexible since it can match callbacks with extra arguments. Tested: Built and run through unit tests. Change-Id: I5317203fa70c027c5e774ed6192952058e35bd81 Signed-off-by: William A. Kennington III <wak@google.com>