| commit | abf8a346f81f6e16a543892ba9ece6a4750ede9f | [log] [tgz] |
|---|---|---|
| author | Bernie Innocenti <codewiz@google.com> | Fri Aug 10 15:17:16 2018 +0900 |
| committer | Bernie Innocenti <codewiz@google.com> | Fri Aug 10 16:21:24 2018 +0900 |
| tree | ae063a7869402755bc894c154204ba970253b914 | |
| parent | 9e81f67e0d29332fd8da26929bad22ecd712e61f [diff] |
Let lock_guard deduce its template argument
No functional change, this is a cleanup.
With C++17, it's no longer necessary to specify the teplate argument
when it can be deduced from the types of constructor arguments. This
allows de-cluttering our locking statements.
To avoid typos, this patch was mechanically generated:
perl -p -i -e 's/std::lock_guard<std::mutex>/std::lock_guard/g' \
$(find . -name '*.cpp' -o -name '*.h')
Change-Id: Ibb15d9a6c5b1c861d81353e47d25474eb1d4c2df