mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
2003ec14dd
We use Ref::From() inside TypeAdapter<Ref>::ToNative to convert a raw JNI ref argument to a Ref argument for the C++ function. However, that generates a compile error, unless we make TypeAdapter<Ref> a friend of Ref, because we intentionally made Ref's copy constructor private and returning from TypeAdapter<Ref>::ToNative requires the copy constructor. |
||
---|---|---|
.. | ||
Accessors.h | ||
moz.build | ||
Natives.h | ||
Refs.h | ||
Types.h | ||
Utils.cpp | ||
Utils.h |