mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
7f284c8cab
Every IPDL C++ class contains a bunch of typedefs. Every IPDL C++ source file contains a bunch of typedefs and using statements for the exact same types. Why is that? Because the class itself is not in scope for name lookup of return types of C++ methods. This limitation is annoying, but it makes sense. The typedefs and using statements therefore exist so we can be a little sloppy about return types. Let's stop being sloppy and polluting the global namespace inside these files. Less pollution makes it easier to smash the IPDL files together for unified compilation. One could do this by qualifying all necessary return types...or we could just use the C++0x late return syntax, which guarantees the class *is* in scope for name lookup. I like this version a lot better. |
||
---|---|---|
.. | ||
app | ||
chromium | ||
dbus | ||
glue | ||
ipdl | ||
netd | ||
nfc | ||
ril | ||
testshell | ||
unixsocket | ||
moz.build | ||
pull-chromium.py |