Closed Bug 1337294 Opened 8 years ago Closed 8 years ago

PeerConnectionMedia.cpp: Unnecessary call to std::string::c_str()

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox54 --- wontfix
firefox55 --- fixed

People

(Reporter: Sylvestre, Assigned: hotshot2797, Mentored)

References

(Blocks 1 open bug)

Details

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

Attachments

(1 file, 2 obsolete files)

A trivial bug for beginner, mostly to understand our workflows: https://dxr.mozilla.org/mozilla-central/source/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp?q=media%2Fwebrtc%2Fsignaling%2Fsrc%2Fpeerconnection%2FPeerConnectionMedia.cpp&redirect_type=direct#455 c_str() should be removed Please use mozreview and not bugzilla for patch submission.
Actually for stuff this trivial, I would prefer you just send patches through Bugzlla/Splinter.
Rank: 45
Priority: -- → P4
Mentor: bpostelnicu
I want to work on this bug.Can someone help me get started?
(In reply to Shashwat Mishra from comment #2) > I want to work on this bug.Can someone help me get started? Sure. Where are you starting from? (dev environment, etc)
How do i accept this bug ?
I think the ability to assign a bug requires to have a track record of work with Mozilla. Since Shashwat asked here first in comment #2 I'm inclined to assign the bug to him.
(In reply to Byron Campen [:bwc] from comment #4) > (In reply to Shashwat Mishra from comment #2) > > I want to work on this bug.Can someone help me get started? > > Sure. Where are you starting from? (dev environment, etc) Well I am a newbie.Can you please guide me so as to what do I exactly have to do? Just remove the c_str() function and I am done?
(In reply to Nils Ohlmeier [:drno] from comment #7) > I think the ability to assign a bug requires to have a track record of work > with Mozilla. > > Since Shashwat asked here first in comment #2 I'm inclined to assign the bug > to him. Thanks a lot sir.Can you tell me how should I proceed? I mean what do I have to do exactly? Just remove c_str() and I am done?
Yes, just remove it.
Assignee: nobody → shashwatmishra76
Flags: needinfo?(sledru)
(In reply to Sylvestre Ledru [:sylvestre] from comment #10) > Yes, just remove it. Well I installed mercurial on ubuntu.When I typed the following command in the terminal to extract the source code in order to make changes it shows:- "abort: error: Name or service not known". I typed in the following command in the terminal:-" hg clone https://dxr.mozilla-central/source/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp"
DXR is only a code source browsing solution, not where we actually host our code. Try this instead: hg clone https://hg.mozilla.org/mozilla-central Note: cloning the full repository might take some time, as it is pretty big. I think you actually have to clone the whole repository, and can not just clone/download a single file. You should then be able to locate the code file at the following location: mozilla-central/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp Probably you want to step into the mozilla-central directory and run: ./mach bootstrap Once you are done with the bootstrapping, you can do: ./mach build Once you have successfully locally build Firefox I would start with modifying the code.
Comment on attachment 8842747 [details] Bug 1337294 - Removed the unnecessary call to c_str() https://reviewboard.mozilla.org/r/116510/#review118116 Removed the call to c.str()
Attachment #8842747 - Flags: review?(drno)
(In reply to Nils Ohlmeier [:drno] from comment #12) > DXR is only a code source browsing solution, not where we actually host our > code. > > Try this instead: > hg clone https://hg.mozilla.org/mozilla-central > > Note: cloning the full repository might take some time, as it is pretty big. > > I think you actually have to clone the whole repository, and can not just > clone/download a single file. > > You should then be able to locate the code file at the following location: > > mozilla-central/media/webrtc/signaling/src/peerconnection/ > PeerConnectionMedia.cpp > > Probably you want to step into the mozilla-central directory and run: > ./mach bootstrap > > Once you are done with the bootstrapping, you can do: > ./mach build > > Once you have successfully locally build Firefox I would start with > modifying the code. Thank you so much for your valuable guidance sir.
(In reply to Shashwat Mishra from comment #15) > (In reply to Nils Ohlmeier [:drno] from comment #12) > > DXR is only a code source browsing solution, not where we actually host our > > code. > > > > Try this instead: > > hg clone https://hg.mozilla.org/mozilla-central > > > > Note: cloning the full repository might take some time, as it is pretty big. > > > > I think you actually have to clone the whole repository, and can not just > > clone/download a single file. > > > > You should then be able to locate the code file at the following location: > > > > mozilla-central/media/webrtc/signaling/src/peerconnection/ > > PeerConnectionMedia.cpp > > > > Probably you want to step into the mozilla-central directory and run: > > ./mach bootstrap > > > > Once you are done with the bootstrapping, you can do: > > ./mach build > > > > Once you have successfully locally build Firefox I would start with > > modifying the code. > > Thank you so much for your valuable guidance sir. Hello, I highly suggest to follow the basic steps provided here: https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions It has detailed instructions on how you can build across all of our supported platforms.
I reassigned it to Vineet Reddy who proposed a patch for a while. please send me an email if you want me to give you an easy bug.
Assignee: shashwatmishra76 → hotshot2797
Attachment #8842747 - Flags: review?(drno) → review?(rjesup)
(In reply to Sylvestre Ledru [:sylvestre] from comment #20) > I reassigned it to Vineet Reddy who proposed a patch for a while. > > please send me an email if you want me to give you an easy bug. Glad to get this oppotunity. hemantsingh1612@gmail.com
Attachment #8842747 - Flags: review?(rjesup) → review+
Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c5a10d34a6ce Removed the unnecessary call to c_str() r=jesup
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Comment on attachment 8860769 [details] removed duplicate rules https://reviewboard.mozilla.org/r/132728/#review135644 Hi Hemant, You need to make sure that you push from a clean branch without any other of your own commits, and include the bug number and reviewer in the commit message, then mozreview will attach it to the right bug.
Attachment #8860769 - Flags: review?(standard8)
Attachment #8856099 - Attachment is obsolete: true
Attachment #8860769 - Attachment is obsolete: true
Mark 54 won't fix as this is late for Beta54.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: