Bug 1412421 - Change some nsAuto[C]String parameters back to ns[C]String. r=erahm
This commit is contained in:
Родитель
e95386a6de
Коммит
825d0ae5e6
|
@ -2105,10 +2105,10 @@ NS_MSG_BASE nsMsgKey msgKeyFromInt(uint64_t aValue)
|
|||
}
|
||||
|
||||
// Helper function to extract a query qualifier.
|
||||
nsAutoCString MsgExtractQueryPart(nsAutoCString spec, const char* queryToExtract)
|
||||
nsCString MsgExtractQueryPart(const nsACString& spec, const char* queryToExtract)
|
||||
{
|
||||
nsAutoCString queryPart;
|
||||
int32_t queryIndex = spec.Find(queryToExtract);
|
||||
nsCString queryPart;
|
||||
int32_t queryIndex = nsPromiseFlatCString(spec).Find(queryToExtract);
|
||||
if (queryIndex == kNotFound)
|
||||
return queryPart;
|
||||
|
||||
|
|
|
@ -372,7 +372,7 @@ NS_MSG_BASE nsMsgKey msgKeyFromInt(uint64_t aValue);
|
|||
/**
|
||||
* Helper function to extract query part from URL spec.
|
||||
*/
|
||||
nsAutoCString MsgExtractQueryPart(nsAutoCString spec, const char* queryToExtract);
|
||||
nsCString MsgExtractQueryPart(const nsACString& spec, const char* queryToExtract);
|
||||
|
||||
/**
|
||||
* Helper macro for defining getter/setters. Ported from nsISupportsObsolete.h
|
||||
|
|
|
@ -9361,7 +9361,7 @@ nsresult nsImapMockChannel::OpenCacheEntry()
|
|||
// ?section=2?part=1.2&filename=A01.JPG&type=image/jpeg&filename=A01.JPG
|
||||
// ?part=1.2&type=image/jpeg&filename=IMG_C0030.jpg
|
||||
// ?header=quotebody&part=1.2&filename=lijbmghmkilicioj.png
|
||||
nsAutoCString partQuery = MsgExtractQueryPart(path, "?part=");
|
||||
nsCString partQuery = MsgExtractQueryPart(path, "?part=");
|
||||
if (partQuery.IsEmpty()) {
|
||||
partQuery = MsgExtractQueryPart(path, "&part=");
|
||||
if (!partQuery.IsEmpty()) {
|
||||
|
@ -9369,7 +9369,7 @@ nsresult nsImapMockChannel::OpenCacheEntry()
|
|||
partQuery.SetCharAt('?', 0);
|
||||
}
|
||||
}
|
||||
nsAutoCString filenameQuery = MsgExtractQueryPart(path, "&filename=");
|
||||
nsCString filenameQuery = MsgExtractQueryPart(path, "&filename=");
|
||||
|
||||
// Truncate path at either /; or ?
|
||||
int32_t ind = path.FindChar('?');
|
||||
|
|
|
@ -108,7 +108,7 @@ NS_IMETHODIMP JaBaseCppUrl::GetPrincipalSpec(nsACString& aPrincipalSpec)
|
|||
nsAutoCString spec;
|
||||
mailnewsURL->GetSpecIgnoringRef(spec);
|
||||
|
||||
nsAutoCString queryPart = MsgExtractQueryPart(spec, "number=");
|
||||
nsCString queryPart = MsgExtractQueryPart(spec, "number=");
|
||||
|
||||
// Strip any query part beginning with ? or /;
|
||||
int32_t ind = spec.Find("/;");
|
||||
|
|
Загрузка…
Ссылка в новой задаче