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

Unified Diff: webkit/plugins/ppapi/plugin_module.cc

Issue 6711047: Fix up some types in the API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed constness on MemFree. Created 9 years, 9 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 | « ppapi/proxy/ppb_url_request_info_proxy.cc ('k') | webkit/plugins/ppapi/ppb_context_3d_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/plugin_module.cc
diff --git a/webkit/plugins/ppapi/plugin_module.cc b/webkit/plugins/ppapi/plugin_module.cc
index 638f113bc0810da670ead546b58690cb4afb8bb7..cabc8011b130c233433d7d69f9310877e6fb4e6c 100644
--- a/webkit/plugins/ppapi/plugin_module.cc
+++ b/webkit/plugins/ppapi/plugin_module.cc
@@ -138,12 +138,12 @@ void ReleaseResource(PP_Resource resource) {
}
}
-void* MemAlloc(size_t num_bytes) {
+void* MemAlloc(uint32_t num_bytes) {
return malloc(num_bytes);
}
-void MemFree(void* ptr) {
- free(ptr);
+void MemFree(const void* ptr) {
+ free(const_cast<void*>(ptr));
dmichael(do not use this one) 2011/03/21 22:26:58 I think you want to take const off here, too.
neb 2011/03/21 23:22:25 Nice catch, I spaced out a bit. I've removed it a
}
double GetTime() {
« no previous file with comments | « ppapi/proxy/ppb_url_request_info_proxy.cc ('k') | webkit/plugins/ppapi/ppb_context_3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698