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

@@ -351,9 +351,9 @@ nsUrlClassifierUtils::GetProvider(const nsACString& aTableName,
if (IsTestTable(aTableName)) {
aProvider = nsLiteralCString(TESTING_TABLE_PROVIDER_NAME);
} else if (mProviderDict.Get(aTableName, &provider)) {
aProvider = provider ? *provider : EmptyCString();
aProvider = provider ? *provider : ""_ns;
} else {
aProvider = EmptyCString();
aProvider.Truncate();
}
return NS_OK;
}
@@ -530,9 +530,9 @@ static nsresult GetSpecWithoutSensitiveData(nsIURI* aUri, nsACString& aSpec) {
if (url) {
nsCOMPtr<nsIURI> clone;
rv = NS_MutateURI(url)
.SetQuery(EmptyCString())
.SetRef(EmptyCString())
.SetUserPass(EmptyCString())
.SetQuery(""_ns)
.SetRef(""_ns)
.SetUserPass(""_ns)
.Finalize(clone);
NS_ENSURE_SUCCESS(rv, rv);
rv = clone->GetAsciiSpec(aSpec);