mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:08:38 +09:00
Bug 1393219 - Code clean-up: Style nits, typos and trailing spaces
Tag #1273
This commit is contained in:
parent
b706286c3d
commit
c021f0c983
4 changed files with 107 additions and 109 deletions
|
|
@ -2506,15 +2506,15 @@ nsAutoCString MsgExtractQueryPart(nsAutoCString spec, const char* queryToExtract
|
|||
if (queryIndex == kNotFound)
|
||||
return queryPart;
|
||||
|
||||
int32_t queryEnd = Substring(spec, queryIndex + 1).FindChar('&');
|
||||
int32_t queryEnd = spec.FindChar('&', queryIndex + 1);
|
||||
if (queryEnd == kNotFound)
|
||||
queryEnd = Substring(spec, queryIndex + 1).FindChar('?');
|
||||
queryEnd = spec.FindChar('?', queryIndex + 1);
|
||||
if (queryEnd == kNotFound) {
|
||||
// Nothing follows, so return from where the query qualifier started.
|
||||
queryPart.Assign(Substring(spec, queryIndex));
|
||||
} else {
|
||||
// Return the substring that represents the query qualifier.
|
||||
queryPart.Assign(Substring(spec, queryIndex, queryEnd + 1));
|
||||
queryPart.Assign(Substring(spec, queryIndex, queryEnd - queryIndex));
|
||||
}
|
||||
return queryPart;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue