diff options
author | Chih-Hung Hsieh <chh@google.com> | 2016-07-12 11:35:16 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2016-07-12 11:38:07 -0700 |
commit | 5674ed87431f2d9b05f4ec0c7f7c2e56e585c956 (patch) | |
tree | 26ed5e89d7a5dcc18fdd3bb734a1fd4a8031090f /simpleperf/sample_tree_test.cpp | |
parent | 78f176baafaffbe5192b7565c4e7d68ce998e731 (diff) | |
download | extras-5674ed87431f2d9b05f4ec0c7f7c2e56e585c956.tar.gz |
Fix google-explicit-constructor warnings in simpleperf.
* Declare explicit conversion constructors.
Bug: 28341362
Change-Id: I9d5b764fe004e291cbdd212617df6f385c31df25
Test: build with clang-tidy
Diffstat (limited to 'simpleperf/sample_tree_test.cpp')
-rw-r--r-- | simpleperf/sample_tree_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/sample_tree_test.cpp b/simpleperf/sample_tree_test.cpp index a3c7811f..e2889688 100644 --- a/simpleperf/sample_tree_test.cpp +++ b/simpleperf/sample_tree_test.cpp @@ -58,7 +58,7 @@ class TestSampleComparator : public SampleComparator<SampleEntry> { class TestSampleTreeBuilder : public SampleTreeBuilder<SampleEntry, int> { public: - TestSampleTreeBuilder(ThreadTree* thread_tree) + explicit TestSampleTreeBuilder(ThreadTree* thread_tree) : SampleTreeBuilder(TestSampleComparator()), thread_tree_(thread_tree) {} void AddSample(int pid, int tid, uint64_t ip, bool in_kernel) { |