cocos2d/cocos2d-x — pull request #7511 by Mazyod (2014-07-17 23:47:18+00:00)
Title: [FIX]: copied data should be const

Context:

In order to store data in `UserDefault`, I use this:

```cpp
data.copy(reinterpret_cast(this), sizeof(User));
```

Since `this` is a const pointer, I either have to use `const_cast` with the current API, which is bad, or change it, so I decided to change it.

Note, this only makes the API more strict within the method, so of course it is compatible with non const values.

Thanks,