diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-11-10 19:32:24 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-11-10 19:32:24 -0500 |
commit | 04c32829fa233490a8fc399be4cf697e9bbafd44 (patch) | |
tree | 542263589589b7f04238e6b1f02b33ff4f30b123 /mailnews/base | |
parent | fb9946df2e4e4db090cb12b279439386dd0ef16a (diff) | |
download | uxp-04c32829fa233490a8fc399be4cf697e9bbafd44.tar.gz |
Bug 1393219 - Code clean-up: Style nits, typos and trailing spaces
Tag mcp-graveyard/UXP#1273
Diffstat (limited to 'mailnews/base')
-rw-r--r-- | mailnews/base/util/nsMsgUtils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mailnews/base/util/nsMsgUtils.cpp b/mailnews/base/util/nsMsgUtils.cpp index 0ed04cd47c..44609bea00 100644 --- a/mailnews/base/util/nsMsgUtils.cpp +++ b/mailnews/base/util/nsMsgUtils.cpp @@ -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; } |