removes a few warnings

This commit is contained in:
Rolando Abarca 2012-08-07 13:54:34 -07:00 committed by folecr
parent 876f7857e1
commit f210b666ee
2 changed files with 8 additions and 8 deletions

View File

@ -98,8 +98,8 @@ public:
CCDirector(void);
virtual ~CCDirector(void);
virtual bool init(void);
virtual uint32_t getClassTypeInfo() {
return reinterpret_cast<int>(typeid(cocos2d::CCDirector).name());
virtual long getClassTypeInfo() {
return reinterpret_cast<long>(typeid(cocos2d::CCDirector).name());
}
// attribute

View File

@ -288,8 +288,8 @@ class CC_DLL CCCallFuncN : public CCCallFunc, public TypeInfo
public:
CCCallFuncN(){}
virtual ~CCCallFuncN(){}
virtual uint32_t getClassTypeInfo() {
return reinterpret_cast<int>(typeid(cocos2d::CCCallFunc).name());
virtual long getClassTypeInfo() {
return reinterpret_cast<long>(typeid(cocos2d::CCCallFunc).name());
}
/** creates the action with the callback
@ -325,8 +325,8 @@ public:
class CC_DLL CCCallFuncND : public CCCallFuncN, public TypeInfo
{
public:
virtual uint32_t getClassTypeInfo() {
return reinterpret_cast<int>(typeid(cocos2d::CCCallFunc).name());
virtual long getClassTypeInfo() {
return reinterpret_cast<long>(typeid(cocos2d::CCCallFunc).name());
}
/** creates the action with the callback and the data to pass as an argument
@ -363,8 +363,8 @@ public:
CCCallFuncO();
virtual ~CCCallFuncO();
#ifdef COCOS2D_JAVASCRIPT
virtual uint32_t getClassTypeInfo() {
return reinterpret_cast<int>(typeid(cocos2d::CCCallFunc).name());
virtual long getClassTypeInfo() {
return reinterpret_cast<long>(typeid(cocos2d::CCCallFunc).name());
}
#endif
/** creates the action with the callback