gecko-dev/dom/presentation
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
ipc Bug 1265275 - Removed using namespace mozilla::ipc; from PresentationIPCService.cpp r=smaug 2020-08-21 11:37:17 +00:00
provider
tests Bug 1619953 - P11 - Mochitest test_presentation_dc_sender.html disabled for e10s r=mccr8 2020-08-05 17:06:13 +00:00
AvailabilityCollection.cpp
AvailabilityCollection.h
components.conf
ControllerConnectionCollection.cpp
ControllerConnectionCollection.h
DCPresentationChannelDescription.cpp
DCPresentationChannelDescription.h
moz.build
Presentation.cpp
Presentation.h
PresentationAvailability.cpp
PresentationAvailability.h Bug 1653011 - Simplify and make WeakPtr<Derived> usable and compact. r=froydnj,sg,geckoview-reviewers,jgilbert,kvark,snorp 2020-07-23 14:51:46 +00:00
PresentationCallbacks.cpp
PresentationCallbacks.h
PresentationConnection.cpp Bug 1265275 - Removed 'using namespace mozilla;' and 'using namespace mozilla::dom;' and replaced them with namespace mozilla{...} and namespace dom{...} from PresentationConnection.cpp r=smaug 2020-07-24 09:40:24 +00:00
PresentationConnection.h Bug 1653011 - Simplify and make WeakPtr<Derived> usable and compact. r=froydnj,sg,geckoview-reviewers,jgilbert,kvark,snorp 2020-07-23 14:51:46 +00:00
PresentationConnectionList.cpp
PresentationConnectionList.h
PresentationDataChannelSessionTransport.jsm
PresentationDeviceManager.cpp
PresentationDeviceManager.h
PresentationLog.h
PresentationNetworkHelper.jsm
PresentationReceiver.cpp
PresentationReceiver.h
PresentationRequest.cpp Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
PresentationRequest.h
PresentationService.cpp Bug 1265275 - Replaced using namespace mozilla; & using namespace mozilla::dom; with namespace mozilla{..} & namespace dom{..} in PresentationRequest.cpp. Added scope resolution to the NS_CreatePresentationService() definition in PresentationService.cpp r=smaug 2020-08-09 14:53:57 +00:00
PresentationService.h
PresentationServiceBase.h
PresentationSessionInfo.cpp
PresentationSessionInfo.h
PresentationSessionRequest.cpp
PresentationSessionRequest.h
PresentationTCPSessionTransport.cpp Bug 1265275 - Removed 'using namespace mozilla;' and 'using namespace mozilla::dom;' and replaced them with namespace mozilla{...} and namespace dom{...} in PresentationTCPSessionTransport.cpp r=smaug 2020-08-05 16:07:51 +00:00
PresentationTCPSessionTransport.h
PresentationTerminateRequest.cpp
PresentationTerminateRequest.h
PresentationTransportBuilderConstructor.cpp
PresentationTransportBuilderConstructor.h