Closed
Bug 688238
Opened 14 years ago
Closed 14 years ago
Move Init() arguments into the constructor
Categories
(Core :: Graphics: ImageLib, defect)
Tracking
()
RESOLVED
FIXED
mozilla10
People
(Reporter: jrmuizel, Assigned: jrmuizel)
Details
Attachments
(1 file)
|
16.74 KB,
patch
|
joe
:
review+
|
Details | Diff | Splinter Review |
This makes the lifetime of the arguments more clear. i.e. that they stay the same for the lifetime of the decoder.
Attachment #561535 -
Flags: review?(joe)
Comment 1•14 years ago
|
||
Comment on attachment 561535 [details] [diff] [review]
Move Init() arguments into the constructor
Review of attachment 561535 [details] [diff] [review]:
-----------------------------------------------------------------
::: modules/libpr0n/decoders/nsBMPDecoder.cpp
@@ +63,5 @@
> #define LINE(row) ((mBIH.height < 0) ? (-mBIH.height - (row)) : ((row) - 1))
> #define PIXEL_OFFSET(row, col) (LINE(row) * mBIH.width + col)
>
> +nsBMPDecoder::nsBMPDecoder(RasterImage *aImage, imgIDecoderObserver* aObserver) :
> + Decoder(aImage, aObserver)
: on the same line as Decoder(. Do this throughout.
::: modules/libpr0n/src/Decoder.h
@@ +56,5 @@
> /**
> * Initialize an image decoder. Decoders may not be re-initialized.
> *
> * @param aContainer The image container to decode to.
> * @param aObserver The observer for decode notification events.
This documentation needs to be moved to the constructor.
@@ +68,5 @@
> * Initializes a decoder whose aImage and aObserver is already being used by a
> * parent decoder. Decoders may not be re-initialized.
> *
> * @param aContainer The image container to decode to.
> * @param aObserver The observer for decode notification events.
Ditto.
Attachment #561535 -
Flags: review?(joe) → review+
Comment 2•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Assignee: nobody → jmuizelaar
Target Milestone: --- → mozilla10
You need to log in
before you can comment on or make changes to this bug.
Description
•