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

Unified Diff: runtime/vm/cpuid.cc

Issue 182903002: - Another necessary const_cast. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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: runtime/vm/cpuid.cc
===================================================================
--- runtime/vm/cpuid.cc (revision 33110)
+++ runtime/vm/cpuid.cc (working copy)
@@ -65,11 +65,11 @@
void CpuId::Cleanup() {
ASSERT(id_string_ != NULL);
- free(id_string_);
+ free(const_cast<char*>(id_string_));
id_string_ = NULL;
ASSERT(brand_string_ != NULL);
- free(brand_string_);
+ free(const_cast<char*>(brand_string_));
brand_string_ = NULL;
}
« 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