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 | 9ae2525b9a5a9ea59055a688706daa0b88e62acc (patch) | |
tree | 542263589589b7f04238e6b1f02b33ff4f30b123 /mailnews/base | |
parent | 993a6bc1d5a668a427a304142ba3620a0307b61a (diff) | |
download | uxp-9ae2525b9a5a9ea59055a688706daa0b88e62acc.tar.gz |
Bug 1393219 - Code clean-up: Style nits, typos and trailing spaces
Tag #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; } |