mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
fe17c87862
`const T&&` parameters don't have associated storage semantics defined for them. Previously they would end up as `StoreCopyPassByRRef`, which might even have been intentional. Forbid them, and change the one use case invoking it to a non-reference (becoming StoreCopyPassByConstLRef). Additionally, there are four optional storage classes that are never automatically selected. Two of these are never used, and a third is only used mistakenly (...ByLRef where only ...ByConstLRef is needed). Adjust the third's use-sites, and remove all three. The last, `StoreCopyPassByPtr`, has more of an argument to be kept: it's simpler to use (and, arguably, to understand) than its lambda-function equivalent when wrapping an XPCOM method that takes an [in]-pointer argument -- but it has only one use site in the entire codebase. Replace and remove it, as well. No functional changes. All deleted cases remain possible via lambda functions fed to NS_NewRunnableFunction. Differential Revision: https://phabricator.services.mozilla.com/D202173 |
||
---|---|---|
.. | ||
dbus | ||
freebsd | ||
gtest | ||
mac | ||
solaris | ||
win | ||
moz.build | ||
nsIWifiAccessPoint.idl | ||
nsIWifiListener.idl | ||
nsIWifiMonitor.idl | ||
nsWifiAccessPoint.cpp | ||
nsWifiAccessPoint.h | ||
nsWifiMonitor.cpp | ||
nsWifiMonitor.h | ||
WifiScanner.h |