Index: test/unittests/counters-unittest.cc |
diff --git a/test/unittests/counters-unittest.cc b/test/unittests/counters-unittest.cc |
index 79678d5a08a6c9beec3a9d7219843f591a0fb708..1f7ac0532e5b371eff43e690db84ec2b3ae3a9da 100644 |
--- a/test/unittests/counters-unittest.cc |
+++ b/test/unittests/counters-unittest.cc |
@@ -28,9 +28,7 @@ class MockHistogram : public Histogram { |
class AggregatedMemoryHistogramTest : public ::testing::Test { |
public: |
- AggregatedMemoryHistogramTest() { |
- aggregated_ = AggregatedMemoryHistogram<MockHistogram>(&mock_); |
- } |
+ AggregatedMemoryHistogramTest() : aggregated_(&mock_) {} |
virtual ~AggregatedMemoryHistogramTest() {} |
void AddSample(double current_ms, double current_value) { |