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

Unified Diff: base/win/event_trace_consumer_unittest.cc

Issue 401423002: clang/win: Fix calling delete[] on void* in base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/event_trace_consumer_unittest.cc
diff --git a/base/win/event_trace_consumer_unittest.cc b/base/win/event_trace_consumer_unittest.cc
index 9066a7c8ff06a02bc6cdb2416adbffc22e4abe2b..8544f5e414b7fa3596a6e2a4bb996582bd34cb5a 100644
--- a/base/win/event_trace_consumer_unittest.cc
+++ b/base/win/event_trace_consumer_unittest.cc
@@ -45,7 +45,7 @@ class TestConsumer: public EtwTraceConsumerBase<TestConsumer> {
void ClearQueue() {
for (EventQueue::const_iterator it(events_.begin()), end(events_.end());
it != end; ++it) {
- delete[] it->MofData;
+ delete[] reinterpret_cast<char*>(it->MofData);
}
events_.clear();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698