Closed Bug 823427 Opened 12 years ago Closed 12 years ago

[Bluetooth] Remove unnecessary buffer in ObexBase.cpp

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: echou, Assigned: echou)

Details

(Whiteboard: [LOE:S])

Attachments

(1 file)

In the function ParseHeaders() of dom/bluetooth/ObexBase.cpp, a buffer [content] is allocated to keep retrieved data. This buffer would be passed into ctor of ObexHeader, but actually we could just pass the original pointer in since another buffer would be allocated in ctor of ObexHeader. This is a follow-up to bug 814341. Please see comment 8 in that bug for more information.
Assignee: nobody → echou
Whiteboard: [LOE:S]
(In reply to Eric Chou [:ericchou] [:echou] from comment #0) > This is a follow-up to bug 814341. Please see comment 8 in that bug for more > information. For convenience: that's bug 814341 comment 8. (taking advantage of bugzilla's auto-linkification of "bug-x-comment-n" strings :) )
(In reply to Daniel Holbert [:dholbert] from comment #1) > (In reply to Eric Chou [:ericchou] [:echou] from comment #0) > > This is a follow-up to bug 814341. Please see comment 8 in that bug for more > > information. > > For convenience: that's bug 814341 comment 8. > > (taking advantage of bugzilla's auto-linkification of "bug-x-comment-n" > strings :) ) Oh, I didn't know that, thanks again. :)
* Removed unnecessary buffer. * Daniel, please review my code to see if I misunderstood anything. Gina, please review my code to ensure that I didn't break OPP functionalities.
Attachment #694268 - Flags: review?(gyeh)
Attachment #694268 - Flags: review?(dholbert)
Comment on attachment 694268 [details] [diff] [review] patch 1: v1: removed unnecessary buffer Review of attachment 694268 [details] [diff] [review]: ----------------------------------------------------------------- Looks good :)
Attachment #694268 - Flags: review?(gyeh) → review+
Comment on attachment 694268 [details] [diff] [review] patch 1: v1: removed unnecessary buffer Yup, that's what I had in mind. Thanks!
Attachment #694268 - Flags: review?(dholbert) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: