Merge pull request #4923 from Dhilan007/develop_crash

fix crash in NewEventDispatcherTest.cpp on vs
This commit is contained in:
minggo 2014-01-06 03:06:58 -08:00
commit 18934eeca3
2 changed files with 10 additions and 0 deletions

View File

@ -749,6 +749,15 @@ std::string RemoveListenerAfterAddingTest::subtitle() const
// //
//DirectorEventTest //DirectorEventTest
// //
DirectorEventTest::DirectorEventTest()
:_count1(0)
,_count2(0)
,_count3(0)
,_count4(0)
{
}
void DirectorEventTest::onEnter() void DirectorEventTest::onEnter()
{ {
EventDispatcherTestDemo::onEnter(); EventDispatcherTestDemo::onEnter();

View File

@ -117,6 +117,7 @@ class DirectorEventTest : public EventDispatcherTestDemo
{ {
public: public:
CREATE_FUNC(DirectorEventTest); CREATE_FUNC(DirectorEventTest);
DirectorEventTest();
virtual void onEnter() override; virtual void onEnter() override;
virtual void onExit() override; virtual void onExit() override;