Closed Bug 1334265 Opened 7 years ago Closed 7 years ago

'find' called with a string literal consisting of a single character; consider using the more effective overload accepting a character

Categories

(Core :: WebRTC: Networking, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: Sylvestre, Assigned: srivatsav1998, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=C++])

Attachments

(1 file, 1 obsolete file)

A trivial bug for a new contributor to learn about our workflow

here:
https://dxr.mozilla.org/mozilla-central/source/media/mtransport/test/ice_unittest.cpp?q=ice_unittest.cpp&redirect_type=direct#239

The "" should be replaced by '' to use a better method
Rank: 29
Priority: -- → P2
I'm having a lot of trouble getting excited about a trivial performance bug in a unit test, especially given that this syntax is consistent with the rest of the find() invocations.
I won't argue: I am just using that a material for a good first bug for someone to get familiar with our workflow and tools.
Keywords: good-first-bug
Whiteboard: [good first bug][lang=C++] → [lang=C++]
Attached patch The "" have been replaced by '' (obsolete) — Splinter Review
Comment on attachment 8831490 [details] [diff] [review]
The "" have been replaced by ''

You should generate a diff and no upload the full file:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/How_to_Submit_a_Patch
Flags: needinfo?(dankzer1)
I have changed to quotation marks as suggested. Please review it. I don't know exactly whom to ask for review.
Attachment #8832818 - Flags: review?(rjesup)
Comment on attachment 8832818 [details] [diff] [review]
bug-1334265-fix.patch

Review of attachment 8832818 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks!
Attachment #8832818 - Flags: review?(rjesup) → review+
Hey Randell, When will this patch get landed?
Flags: needinfo?(rjesup)
Well done, this is explained here:
 https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Introduction#Step_6_-_Actually_get_the_code_into_the_tree
Assignee: nobody → srivatsav1998
Flags: needinfo?(rjesup)
Flags: needinfo?(dankzer1)
Can you push the patch to try server for me?
Flags: needinfo?(rjesup)
I think we can skip that step :)
Just add the keyword
Flags: needinfo?(rjesup)
Please keep the keyword
Keywords: good-first-bug
Attachment #8831490 - Attachment is obsolete: true
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/4d40791b6d0a
Replace double quotation marks with single quotation marks in ice_unittest.cpp. r=jesup
Keywords: checkin-needed
Why is the checkin-needed keyword removed? Is there any fault with the patch?
Flags: needinfo?(rjesup)
Because Ryan landed the patch already for you in mozilla-inbound.
Oncee it reaches mozilla-central, this bug will be closed! :)
Flags: needinfo?(rjesup)
https://hg.mozilla.org/mozilla-central/rev/4d40791b6d0a
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: