Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3238)

Unified Diff: base/debug/trace_event.h

Issue 7216031: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/dir_reader_linux.h » ('j') | base/process_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/trace_event.h
diff --git a/base/debug/trace_event.h b/base/debug/trace_event.h
index d88e9017caa8fe0b51ee88c09a8faeb3f85ff508..8372ba44f26aeda1dc38fc959f716a86b5d9b91a 100644
--- a/base/debug/trace_event.h
+++ b/base/debug/trace_event.h
@@ -488,7 +488,10 @@ namespace internal {
// Used by TRACE_EVENTx macro. Do not use directly.
class BASE_API TraceEndOnScopeClose {
public:
- TraceEndOnScopeClose() : p_data_(NULL) {}
+ TraceEndOnScopeClose()
+ : p_data_(NULL) {
vandebo (ex-Chrome) 2011/06/21 22:34:44 nit: IIRC this can stay on the previous line.
James Hawkins 2011/06/21 22:45:05 On 2011/06/21 22:34:44, vandebo wrote: Done.
+ memset(&data_, 0, sizeof(data));
+ }
~TraceEndOnScopeClose() {
if (p_data_)
AddEventIfEnabled();
« no previous file with comments | « no previous file | base/dir_reader_linux.h » ('j') | base/process_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698