mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
64047aa718
A lot of existing code has variations on: if (ManagedPFooChild().Length()) { ...(ManagedPFooChild()[0])... } // Do something with nullptr, or some other action. It's pretty reasonable to repeat this code when the managed protocols are stored in an array; the code gets much less nice when managed protocols are stored in a hashtable. Let's write a small utility function to handle those details for us. Then when we change the underlying storage, we only need to update this function, rather than a bunch of callsites. ProtocolUtils.h is included by all the generated IPDL headers, so LoneManagedOrNull should be available everywhere the above pattern would be encountered. |
||
---|---|---|
.. | ||
app | ||
chromium | ||
contentproc | ||
dbus | ||
glue | ||
hal | ||
ipdl | ||
keystore | ||
netd | ||
nfc | ||
ril | ||
testshell | ||
unixfd | ||
unixsocket | ||
moz.build | ||
pull-chromium.py |