commit | 59fd1232232c0e4447188b6bcadd8fe50126857f | [log] [tgz] |
---|---|---|
author | Greg Kaiser <gkaiser@google.com> | Fri May 25 09:55:31 2018 -0700 |
committer | Greg Kaiser <gkaiser@google.com> | Fri May 25 09:55:31 2018 -0700 |
tree | 5a4c1dc056e2f23d43d0f6cc38787c92b74969eb | |
parent | ca8f3be17d2f94d2a97726c6e4817ac7abc1fc4d [diff] |
Avoid intermediate std::string construction When are calling a function which takes a 'const std::string&', and we have a std::string "foo", we want to just pass in "foo" directly, instead of "foo.c_str()". Test: Compiled Change-Id: I756057b43934cdcd661deb45e1c1b99c89033468