diff options
author | Karroffel <therzog@mail.de> | 2017-06-20 21:38:21 +0200 |
---|---|---|
committer | Karroffel <therzog@mail.de> | 2017-06-20 21:38:21 +0200 |
commit | 40bb90fabdbb98af9235b224d2172e4c1aeeacc9 (patch) | |
tree | 7b4777bc5612089789eb741f30efc333a40069de /editor/icons/icon_joypad.png | |
parent | a22b9ce8aca9ff6580308b43bfaef92200f9aaa5 (diff) |
fixed ptrcall cast for const Ref<T>
Some methods require a const Ref<T> argument,
the ptrcall method wrappers cast `void *` to the
apropriate types. The problem is that there is no `Ref(const T *)`
constructor, but since Ref modifies the refcount of a Reference
anyway there's no point in a const version.
The problem is that with a `const T *` constructor call, the
argument gets converted to Variant first and loses all the
reference information, resulting in a null reference as the
argument to the constructor.
Diffstat (limited to 'editor/icons/icon_joypad.png')
0 files changed, 0 insertions, 0 deletions