Closed
Bug 823427
Opened 12 years ago
Closed 12 years ago
[Bluetooth] Remove unnecessary buffer in ObexBase.cpp
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: echou, Assigned: echou)
Details
(Whiteboard: [LOE:S])
Attachments
(1 file)
1.34 KB,
patch
|
gyeh
:
review+
dholbert
:
review+
|
Details | Diff | Splinter Review |
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 | ||
Updated•12 years ago
|
Assignee: nobody → echou
Whiteboard: [LOE:S]
Comment 1•12 years ago
|
||
(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 :) )
Assignee | ||
Comment 2•12 years ago
|
||
(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. :)
Assignee | ||
Comment 3•12 years ago
|
||
* 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 4•12 years ago
|
||
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 5•12 years ago
|
||
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+
Assignee | ||
Comment 6•12 years ago
|
||
Comment 7•12 years ago
|
||
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.
Description
•