summaryrefslogtreecommitdiff
path: root/core/os/memory.cpp
diff options
context:
space:
mode:
authorKarroffel <therzog@mail.de>2017-06-20 21:38:21 +0200
committerKarroffel <therzog@mail.de>2017-06-20 21:38:21 +0200
commit40bb90fabdbb98af9235b224d2172e4c1aeeacc9 (patch)
tree7b4777bc5612089789eb741f30efc333a40069de /core/os/memory.cpp
parenta22b9ce8aca9ff6580308b43bfaef92200f9aaa5 (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 'core/os/memory.cpp')
0 files changed, 0 insertions, 0 deletions