gecko-dev/dom/network
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
..
interfaces
tests Bug 1614462: Part 2d - Fix tests that don't need to use mozbrowser. r=mccr8 2020-04-20 22:31:29 +00:00
Connection.cpp Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
Connection.h
ConnectionMainThread.cpp
ConnectionMainThread.h
ConnectionWorker.cpp Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
ConnectionWorker.h
Constants.h
PTCPServerSocket.ipdl
PTCPSocket.ipdl
PUDPSocket.ipdl
TCPServerSocket.cpp Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
TCPServerSocket.h
TCPServerSocketChild.cpp Bug 1647133 - P1. Use nsISerialEventTarget where it's actually that. r=nika 2020-06-23 03:21:14 +00:00
TCPServerSocketChild.h Bug 1647133 - P1. Use nsISerialEventTarget where it's actually that. r=nika 2020-06-23 03:21:14 +00:00
TCPServerSocketParent.cpp
TCPServerSocketParent.h
TCPSocket.cpp Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
TCPSocket.h Bug 1639310 - Remove unnecessary implicitJSContext annotations. r=mccr8 2020-05-19 20:48:21 +00:00
TCPSocketChild.cpp Bug 1647133 - P1. Use nsISerialEventTarget where it's actually that. r=nika 2020-06-23 03:21:14 +00:00
TCPSocketChild.h Bug 1647133 - P1. Use nsISerialEventTarget where it's actually that. r=nika 2020-06-23 03:21:14 +00:00
TCPSocketParent.cpp Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj 2020-08-04 11:27:07 +00:00
TCPSocketParent.h
UDPSocket.cpp Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
UDPSocket.h Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
UDPSocketChild.cpp Bug 1647133 - P1. Use nsISerialEventTarget where it's actually that. r=nika 2020-06-23 03:21:14 +00:00
UDPSocketChild.h Bug 1647133 - P1. Use nsISerialEventTarget where it's actually that. r=nika 2020-06-23 03:21:14 +00:00
UDPSocketParent.cpp Bug 1659132 - Make AddrInfo immutable r=dragana,necko-reviewers 2020-09-01 07:22:14 +00:00
UDPSocketParent.h
moz.build