You're right... I missed that as I'm using a different C++ Language Dialect
in my project and no compilation errors were reported.

Should be fine now.

Regards
Jaro


Jaroslaw Lewandowski

jotel@jotel.net
http://www.linkedin.com/in/jotel


On 29 May 2013 11:09, minggo <notifications@github.com> wrote:

> In cocos2dx/support/user_default/CCUserDefault.mm:
>
> > +        else
> > +        {
> > +            // delete xmle node
> > +            deleteNode(doc, node);
> > +        }
> > +    }
> > +#endif
> > +
> > +    NSData *data = [[NSUserDefaults standardUserDefaults] dataForKey:[NSString stringWithUTF8String:pKey]];
> > +    if (! data)
> > +    {
> > +        return defaultValue;
> > +    }
> > +    else
> > +    {
> > +        unsigned char *bytes = {};
>
> This line will cause compiling error on iOS.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cocos2d/cocos2d-x/pull/2666/files#r4431373>
> .
>