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)
Core
WebRTC: Networking
Tracking
()
RESOLVED
FIXED
mozilla55
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.
Comment 1•8 years ago
|
||
Actually for stuff this trivial, I would prefer you just send patches through Bugzlla/Splinter.
Updated•8 years ago
|
Rank: 45
Priority: -- → P4
Updated•8 years ago
|
Mentor: bpostelnicu
Comment 2•8 years ago
|
||
I want to work on this bug.Can someone help me get started?
Comment 3•8 years ago
|
||
It looks like the line numbers aren't right anymore on this. Do we mean to remove the c_str() here?
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#431
Flags: needinfo?(sledru)
Comment 4•8 years ago
|
||
(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)
Comment 5•8 years ago
|
||
Yep I think the old link used to point at the c_str() call in line 431 https://dxr.mozilla.org/mozilla-central/rev/e1135c6fdc9bcd80d38f7285b269e030716dcb72/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp#431
Comment 7•8 years ago
|
||
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.
Comment 8•8 years ago
|
||
(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?
Comment 9•8 years ago
|
||
(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?
Reporter | ||
Comment 10•8 years ago
|
||
Yes, just remove it.
Assignee: nobody → shashwatmishra76
Flags: needinfo?(sledru)
Comment 11•8 years ago
|
||
(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"
Comment 12•8 years ago
|
||
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 hidden (mozreview-request) |
Assignee | ||
Comment 14•8 years ago
|
||
mozreview-review |
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()
Assignee | ||
Updated•8 years ago
|
Attachment #8842747 -
Flags: review?(drno)
Comment 15•8 years ago
|
||
noise |
(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.
Comment 16•8 years ago
|
||
(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.
Comment hidden (duplicate) |
Comment hidden (mozreview-request) |
Comment hidden (duplicate) |
Reporter | ||
Comment 20•8 years ago
|
||
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
Reporter | ||
Updated•8 years ago
|
Attachment #8842747 -
Flags: review?(drno) → review?(rjesup)
Comment 21•8 years ago
|
||
(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
Comment 22•8 years ago
|
||
mozreview-review |
Comment on attachment 8842747 [details]
Bug 1337294 - Removed the unnecessary call to c_str()
https://reviewboard.mozilla.org/r/116510/#review130616
Attachment #8842747 -
Flags: review?(rjesup) → review+
Comment 23•8 years ago
|
||
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c5a10d34a6ce
Removed the unnecessary call to c_str() r=jesup
Comment 24•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Comment hidden (mozreview-request) |
Comment 26•8 years ago
|
||
mozreview-review |
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)
Updated•8 years ago
|
Attachment #8856099 -
Attachment is obsolete: true
Updated•8 years ago
|
Attachment #8860769 -
Attachment is obsolete: true
Comment 27•8 years ago
|
||
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.
Description
•