commit | 30ecd2b8d901ddfbaa1b607fa514e96e5f49cb11 | [log] [tgz] |
---|---|---|
author | David Garcia Quintas <dgq@google.com> | Wed May 20 23:06:44 2015 -0700 |
committer | David Garcia Quintas <dgq@google.com> | Wed May 20 23:08:29 2015 -0700 |
tree | 3515afd99ae5b09e57a3ddcc0cd5c96733ac4005 | |
parent | a6b559a76ae3d96f8df4abe07173c8b56fbfc032 [diff] [blame] |
Return shared_ptr by value plus minor dependency fix
diff --git a/test/cpp/util/benchmark_config.cc b/test/cpp/util/benchmark_config.cc index 1b15ddc..5b3c1da 100644 --- a/test/cpp/util/benchmark_config.cc +++ b/test/cpp/util/benchmark_config.cc
@@ -60,7 +60,7 @@ return std::shared_ptr<Reporter>(composite_reporter); } -const std::shared_ptr<Reporter>& GetReporter() { +std::shared_ptr<Reporter> GetReporter() { static std::shared_ptr<Reporter> reporter(InitBenchmarkReporters()); return reporter; }