Skip to content

Commit b37b4b8

Browse files
author
minggo
committed
Merge pull request cocos2d#354 from minggo/iss577
[android] fixed cocos2d#577: init member variable to default value
2 parents 425c66b + 9dd9481 commit b37b4b8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

cocos2dx/actions/CCActionInterval.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,6 +1952,11 @@ CCObject* CCReverseTime::copyWithZone(cocos2d::CCZone *pZone)
19521952
return pCopy;
19531953
}
19541954

1955+
CCReverseTime::CCReverseTime() : m_pOther(NULL)
1956+
{
1957+
1958+
}
1959+
19551960
CCReverseTime::~CCReverseTime(void)
19561961
{
19571962
CC_SAFE_RELEASE(m_pOther);

cocos2dx/include/CCActionInterval.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ class CC_DLL CCReverseTime : public CCActionInterval
641641
{
642642
public:
643643
~CCReverseTime(void);
644+
CCReverseTime();
644645

645646
/** initializes the action */
646647
bool initWithAction(CCFiniteTimeAction *pAction);

0 commit comments

Comments
 (0)