gecko-dev/js/xpconnect
Nathan Froyd cfb8fb313f Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg
This patch was generated by running:

```
perl -p -i \
     -e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF8toUTF16\((.*)\);/\1CopyUTF8toUTF16(\3, \2);/;' \
     -e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF16toUTF8\((.*)\);/\1CopyUTF16toUTF8(\3, \2);/;' \
     $FILE
```

against every .cpp and .h in mozilla-central, and then fixing up the
inevitable errors that happen as a result of matching C++ expressions with
regexes.  The errors fell into three categories:

1. Calling the convert functions with `std::string::c_str()`; these were
   changed to simply pass the string instead, relying on implicit conversion
   to `mozilla::Span`.
2. Calling the convert functions with raw pointers, which is not permitted
   with the copy functions; these were changed to invoke `MakeStringSpan` first.
3. Other miscellaneous errors resulting from over-eager regexes and/or the
   replacement not being type-aware.  These changes were reverted.

Differential Revision: https://phabricator.services.mozilla.com/D88903
2020-09-02 09:54:37 +00:00
..
crashtests
idl Bug 1464542: Part 2 - Add infrastructure for defining named services exposed to JS. r=mccr8 2020-07-09 20:42:50 +00:00
loader Bug 1661476 - Prevent Result<const V, E> or Result<V, const E> from being instantiated. r=froydnj 2020-08-28 14:16:35 +00:00
public
shell Bug 1656141 - Remove rc include files that only add a manifest. r=firefox-build-system-reviewers,rstewart 2020-08-06 22:51:54 +00:00
src Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
tests Bug 1651519: Part 2 - Also remove nsIDOMWindowUtils::outerWindowID. r=nika,geckoview-reviewers,agi 2020-08-17 20:22:12 +00:00
wrappers Bug 1654851 - Correctly handle transplanting objects with private fields r=jorendorff,extension-reviewers,zombie 2020-08-11 21:35:40 +00:00
moz.build