mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
189314d9cf
This is done by storing the object pointer based on the exact pointee type, instead of as hinted by the method-pointer, which could be a non-refcounted base class. The stored pointer type is statically-checked to be derived from (or the same as) the class type from the method-pointer, to prevent misuses. One change had to be done in TrackBuffersManager, as it was passing another type and relying on implicit pointer conversions. A simple `.get()` to pass the raw pointer type (to be stored in a RefPtr) fixed that one issue. MozReview-Commit-ID: 4kH0XdjB5Rk --HG-- extra : rebase_source : 3eb7fa3cb1873f71b4d5e7118d2dc48f6fdf2874 |
||
---|---|---|
.. | ||
base | ||
build | ||
components | ||
doc | ||
ds | ||
glue | ||
idl-parser | ||
io | ||
libxpt/xptcall | ||
reflect | ||
rust/nsstring | ||
string | ||
system | ||
tests | ||
threads | ||
typelib | ||
windbgdlg | ||
xpidl | ||
moz.build | ||
xpcom-config.h.in | ||
xpcom-private.h.in |