Closed
Bug 1139818
Opened 10 years ago
Closed 10 years ago
Merge imgRequest public and private sections
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: seth, Assigned: seth)
References
Details
Attachments
(1 file, 2 obsolete files)
3.52 KB,
patch
|
Details | Diff | Splinter Review |
imgRequest currently has public and private members mixed together, like this:
> class imgRequest {
> private:
> ...
> public:
> ...
> private:
> ...
> public:
> ...
> private:
> ...
> };
That makes the code harder to read and maintain.
In this bug I'll merge things together so there is one explicit private section and one public section. Typedefs will go at the beginning of the class definition in the initial, implicitly-private section, just as we generally do in layout code.
Assignee | ||
Comment 1•10 years ago
|
||
Here's the patch.
Attachment #8573159 -
Flags: review?(amarchesini)
Comment 2•10 years ago
|
||
Comment on attachment 8573159 [details] [diff] [review]
Merge imgRequest public and private sections
Review of attachment 8573159 [details] [diff] [review]:
-----------------------------------------------------------------
::: image/src/imgRequest.h
@@ +206,5 @@
>
> bool HasConsumers();
>
> private:
> + friend class FinishPreparingForNewPartRunnable;
I would move this to line 51.
@@ +208,5 @@
>
> private:
> + friend class FinishPreparingForNewPartRunnable;
> +
> + virtual ~imgRequest();
no needs for virtual, this is MOZ_FINAL. right?
Attachment #8573159 -
Flags: review?(amarchesini) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Thanks for the review!
(In reply to Andrea Marchesini (:baku) from comment #2)
> no needs for virtual, this is MOZ_FINAL. right?
I see what you mean, but our style guide requires this, at least by my reading.
Assignee | ||
Comment 4•10 years ago
|
||
Updated patch and rebased against the new versions of the patches in bug 1139804.
Assignee | ||
Updated•10 years ago
|
Attachment #8573159 -
Attachment is obsolete: true
Assignee | ||
Comment 5•10 years ago
|
||
Rebase.
Assignee | ||
Updated•10 years ago
|
Attachment #8575732 -
Attachment is obsolete: true
Assignee | ||
Comment 6•10 years ago
|
||
Pushed to inbound:
29219668983e Seth Fowler — Bug 1139818 - Merge imgRequest public and private sections. r=baku
Comment 7•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•