[vlc-commits] RuntimeNPObject: Remove unneeded cast
Hugo Beauzée-Luyssen
git at videolan.org
Tue Mar 31 10:51:57 CEST 2015
npapi-vlc | branch: cleanup | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Mar 27 15:20:26 2015 +0100| [4e8989e32a17bebb76fec295cd9b75564a594362] | committer: Hugo Beauzée-Luyssen
RuntimeNPObject: Remove unneeded cast
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=4e8989e32a17bebb76fec295cd9b75564a594362
---
npapi/npruntime/nporuntime.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/npapi/npruntime/nporuntime.h b/npapi/npruntime/nporuntime.h
index bb0d27e..ae1a267 100644
--- a/npapi/npruntime/nporuntime.h
+++ b/npapi/npruntime/nporuntime.h
@@ -126,8 +126,7 @@ protected:
static NPObject *Allocate(NPP instance, NPClass *aClass)
{
- const RuntimeNPClass<T> *vClass = static_cast<RuntimeNPClass<T> *>(aClass);
- return new T(instance, vClass);
+ return new T(instance, aClass);
}
static void Deallocate(NPObject *npobj)
More information about the vlc-commits
mailing list