[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r12167: Remove unnecessary reinterpr
From: |
Bastiaan Jacques |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r12167: Remove unnecessary reinterpret_casts. |
Date: |
Wed, 21 Apr 2010 20:33:57 +0200 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 12167
committer: Bastiaan Jacques <address@hidden>
branch nick: trunk
timestamp: Wed 2010-04-21 20:33:57 +0200
message:
Remove unnecessary reinterpret_casts.
modified:
plugin/npapi/callbacks.cpp
plugin/npapi/pluginScriptObject.cpp
=== modified file 'plugin/npapi/callbacks.cpp'
--- a/plugin/npapi/callbacks.cpp 2010-04-21 14:33:46 +0000
+++ b/plugin/npapi/callbacks.cpp 2010-04-21 18:33:57 +0000
@@ -243,7 +243,7 @@
BOOLEAN_TO_NPVARIANT(false, *result);
}
// free the memory used for the data, as it was allocated in
readPlayer().
- NPN_MemFree(reinterpret_cast<void *>(value));
+ NPN_MemFree(value);
return true;
}
@@ -404,7 +404,7 @@
INT32_TO_NPVARIANT(0, *result);
}
// free the memory used for the data, as it was allocated in
readPlayer().
- NPN_MemFree(reinterpret_cast<void *>(value));
+ NPN_MemFree(value);
return true;
}
@@ -667,7 +667,7 @@
INT32_TO_NPVARIANT(0, *result);
}
// free the memory used for the data, as it was allocated in
readPlayer().
- NPN_MemFree(reinterpret_cast<void *>(value));
+ NPN_MemFree(value);
return true;
}
=== modified file 'plugin/npapi/pluginScriptObject.cpp'
--- a/plugin/npapi/pluginScriptObject.cpp 2010-04-21 14:33:46 +0000
+++ b/plugin/npapi/pluginScriptObject.cpp 2010-04-21 18:33:57 +0000
@@ -674,8 +674,6 @@
// Have the read function allocate the memory
const char *data = 0;
- char *ptr = 0;
- ptr = const_cast<char *>(data);
ret = readPlayer(controlfd, &data, 0);
if (ret == 0) {
value = (NPVariant *)NPN_MemAlloc(sizeof(NPVariant));
@@ -686,7 +684,7 @@
value = ei.parseXML(data);
// free the memory used for the data, as it was allocated in readPlayer().
- NPN_MemFree(reinterpret_cast<void *>(const_cast<char *>(data)));
+ NPN_MemFree(const_cast<char *>(data));
printNPVariant(value);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r12167: Remove unnecessary reinterpret_casts.,
Bastiaan Jacques <=