Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi

Differential Revision: https://phabricator.services.mozilla.com/D82325
This commit is contained in:
Simon Giesecke
2020-09-23 15:17:15 +00:00
parent 657e465a83
commit ab6f0a7137
447 changed files with 1257 additions and 1389 deletions

View File

@@ -5386,7 +5386,7 @@ static already_AddRefed<AudioTrack> CreateAudioTrack(
aStreamTrack->GetLabel(label, CallerType::System);
return MediaTrackList::CreateAudioTrack(aOwnerGlobal, id, u"main"_ns, label,
EmptyString(), true, aStreamTrack);
u""_ns, true, aStreamTrack);
}
static already_AddRefed<VideoTrack> CreateVideoTrack(
@@ -5397,7 +5397,7 @@ static already_AddRefed<VideoTrack> CreateVideoTrack(
aStreamTrack->GetLabel(label, CallerType::System);
return MediaTrackList::CreateVideoTrack(aOwnerGlobal, id, u"main"_ns, label,
EmptyString(), aStreamTrack);
u""_ns, aStreamTrack);
}
void HTMLMediaElement::NotifyMediaStreamTrackAdded(
@@ -6775,7 +6775,7 @@ void HTMLMediaElement::SetRequestHeaders(nsIHttpChannel* aChannel) {
// and from seeking. So, disable the standard "Accept-Encoding: gzip,deflate"
// that we usually send. See bug 614760.
DebugOnly<nsresult> rv =
aChannel->SetRequestHeader("Accept-Encoding"_ns, EmptyCString(), false);
aChannel->SetRequestHeader("Accept-Encoding"_ns, ""_ns, false);
MOZ_ASSERT(NS_SUCCEEDED(rv));
// Set the Referrer header