OSDN Git Service

Avoid extra string copy
authorGreg Kaiser <gkaiser@google.com>
Wed, 12 Feb 2020 15:11:09 +0000 (07:11 -0800)
committerGreg Kaiser <gkaiser@google.com>
Wed, 12 Feb 2020 15:11:09 +0000 (07:11 -0800)
commit724f0092a33e0aafb1fa5c9a37d3bbf844026c4c
tree9c8ad7b0ef93fac3928de6dfd75e48e547398633
parentd0d7640403698ddcc0c6d4479febc6fc7386bf62
Avoid extra string copy

We directly pass a reference to our std::string, instead of
forcing the creation of a temporary std::string from the
result of c_str().

Test: TreeHugger
Change-Id: Ibab13f1e1ff43af076df60ae4032bf9dd111dd27
Utils.cpp