We need to use enum class to prevent implicit conversion.

- James
ÔÚ 2013-9-10 ÉÏÎç10:11£¬"Zhe Wang" <notifications@github.com>Ð´µÀ£º

> In cocos2dx/menu_nodes/CCMenu.cpp:
>
> > @@ -179,6 +179,34 @@ void Menu::addChild(Node * child, int zOrder, int tag)
> >      Layer::addChild(child, zOrder, tag);
> >  }
> >
> > +void Menu::onEnter()
> > +{
> > +    Layer::onEnter();
> > +
> > +    this->registerEventCallback(TouchEvent::EVENT_TYPE, [this](Event* evt){
> > +        TouchEvent* touchEvent = static_cast<TouchEvent*>(evt);
> > +
> > +        switch (touchEvent->getEventCode()) {
> > +            case TouchEvent::EventCode::BEGAN:
>
> TouchEvent::EventCode::BEGAN is too long. Could we use TouchEvent::BEGAN,
> TouchEvent::MOVED here?
>
> ¡ª
> Reply to this email directly or view it on GitHub<https://github.com/cocos2d/cocos2d-x/pull/3532/files#r6256306>
> .
>