Closed
Bug 1027993
Opened 10 years ago
Closed 10 years ago
Remove plstr.h usages under xpfe/
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: m_kato, Assigned: m_kato)
Details
Attachments
(1 file)
3.56 KB,
patch
|
neil
:
review+
|
Details | Diff | Splinter Review |
I think no reason to keep using PL_strstr in Gecko code. We can use strstr instead. Some libc such as glibc has SSE2 optimize version of strstr. Also, we can remove nsCRT.h reference after removing it.
Assignee | ||
Comment 1•10 years ago
|
||
need null check for parameter. Also we can remove #include "nsCRT.h" for this.
Attachment #8443232 -
Flags: review?(neil)
Comment 2•10 years ago
|
||
Comment on attachment 8443232 [details] [diff] [review] Replace PL_strstr with strstr >+ bool viewSource = aContentType ? !!strstr(aContentType, "view-source") : false; Why not write aContentType && strstr(aContentType, "view-source") (with extra !!s if you like)?
Attachment #8443232 -
Flags: review?(neil) → review+
Assignee | ||
Comment 3•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/a5a361e955d1 with neil's comment
Target Milestone: --- → mozilla33
Comment 4•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/a5a361e955d1
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•