From ffeb154342de3593288afcd6a1ca90043e299b48 Mon Sep 17 00:00:00 2001 From: "finnur@chromium.org" Date: Fri, 11 Feb 2011 16:02:35 +0000 Subject: Initialize StatsTable::Private members. BUG=None TEST=None CID=13412 Review URL: http://codereview.chromium.org/6483011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74594 0039d316-1c4b-4281-b951-d872f2087c98 --- base/metrics/stats_table.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'base/metrics') diff --git a/base/metrics/stats_table.cc b/base/metrics/stats_table.cc index bae2c96..cfc1da1 100644 --- a/base/metrics/stats_table.cc +++ b/base/metrics/stats_table.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -136,7 +136,14 @@ class StatsTable::Private { private: // Constructor is private because you should use New() instead. - Private() {} + Private() + : table_header_(NULL), + thread_names_table_(NULL), + thread_tid_table_(NULL), + thread_pid_table_(NULL), + counter_names_table_(NULL), + data_table_(NULL) { + } // Initializes the table on first access. Sets header values // appropriately and zeroes all counters. -- cgit v1.1