Closed
Bug 710987
Opened 13 years ago
Closed 13 years ago
Possible duplicate conditional in WordSplitState::FindSpecialWord()
Categories
(Core :: Spelling checker, defect)
Core
Spelling checker
Tracking
()
RESOLVED
FIXED
mozilla11
People
(Reporter: Dolske, Assigned: prip)
References
Details
(Whiteboard: [pvs-studio][good first bug][lang=c++][mentor=jwein])
Attachments
(1 file)
1.13 KB,
patch
|
roc
:
review+
emorley
:
checkin+
|
Details | Diff | Splinter Review |
From http://www.viva64.com/en/a/0078/,
4th section in http://www.viva64.com/external-pictures/txt/mozilla-test.txt
V501 There are identical sub-expressions 'protocol.EqualsIgnoreCase ("ftp")' to the left and to the right of the '||' operator.
mozinlinespellwordutil.cpp 1034
Not a error. But one "protocol.EqualsIgnoreCase("ftp")" can be removed.
if (protocol.EqualsIgnoreCase("http") ||
protocol.EqualsIgnoreCase("https") ||
protocol.EqualsIgnoreCase("news") ||
protocol.EqualsIgnoreCase("ftp") ||
protocol.EqualsIgnoreCase("file") ||
protocol.EqualsIgnoreCase("javascript") ||
protocol.EqualsIgnoreCase("ftp")) {
Updated•13 years ago
|
Whiteboard: [pvs-studio] → [pvs-studio][good first bug][lang=c++]
Assignee | ||
Comment 1•13 years ago
|
||
Comment 2•13 years ago
|
||
prip: When you are happy with the state of the patch, please request review from gavin by setting the "review?" flag to "roc@ocallahan.org" and feedback from ryanvm by setting the "feedback?" flag to "ryanvm@gmail.com". Thanks for your contribution!
Assignee: nobody → thomas
Status: NEW → ASSIGNED
Updated•13 years ago
|
Whiteboard: [pvs-studio][good first bug][lang=c++] → [pvs-studio][good first bug][lang=c++][mentor=jwein]
Comment 3•13 years ago
|
||
(In reply to Jared Wein [:jwein and :jaws] from comment #2)
> prip: When you are happy with the state of the patch, please request review
> from gavin by setting the "review?" flag to "roc@ocallahan.org" and feedback
Sorry, I meant to say to request review from gavin by setting the "review?" flag to "gavin.sharp@gmail.com".
Comment 4•13 years ago
|
||
I don't need to provide feedback on this. Thanks for asking, though :)
Assignee | ||
Updated•13 years ago
|
Attachment #582123 -
Flags: review?(roc)
Attachment #582123 -
Flags: feedback?(ryanvm)
Updated•13 years ago
|
Attachment #582123 -
Flags: feedback?(ryanvm)
Attachment #582123 -
Flags: review?(roc)
Attachment #582123 -
Flags: review+
Attachment #582123 -
Flags: checkin?
Comment 5•13 years ago
|
||
Comment on attachment 582123 [details] [diff] [review]
Bug 710987 - Remove duplicate conditional
https://hg.mozilla.org/integration/mozilla-inbound/rev/6fcec9ac1164
Attachment #582123 -
Flags: checkin? → checkin+
Comment 6•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
You need to log in
before you can comment on or make changes to this bug.
Description
•