gecko-dev/dom/l10n
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
..
tests Bug 1642398: Add a lint rule to warn about multiple calls to document.l10n.formatValue. r=Standard8,preferences-reviewers,ntim 2020-07-02 18:51:44 +00:00
DOMLocalization.cpp Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
DOMLocalization.h Bug 1642423: document.l10n.formatValues should accept simple strings as well as L10nKeys. r=zbraniecki 2020-06-08 18:11:00 +00:00
DocumentL10n.cpp Bug 1631593 - Lazify JSM initialization. r=smaug 2020-06-04 17:02:01 +00:00
DocumentL10n.h Bug 1631593 - Lazify JSM initialization. r=smaug 2020-06-04 17:02:01 +00:00
L10nMutations.cpp Bug 1656117 - Reduce include dependencies on nsRefreshDriver.h. r=mstange 2020-08-04 21:17:50 +00:00
L10nMutations.h Bug 1656117 - Reduce include dependencies on nsRefreshDriver.h. r=mstange 2020-08-04 21:17:50 +00:00
L10nOverlays.cpp Bug 1645246 - add error reporting when fluent overwrites child elements (rather than just text), r=zbraniecki 2020-06-16 23:54:51 +00:00
L10nOverlays.h Bug 1560038 - Switch Localization IDL to use UTF8String for L10nArgs r=emilio 2020-03-11 07:17:07 +00:00
components.conf Bug 1552714 - Remove dom::l10n namespace and unify class naming. r=smaug 2019-06-06 16:32:58 +00:00
moz.build Bug 1552714 - Remove dom::l10n namespace and unify class naming. r=smaug 2019-06-06 16:32:58 +00:00