Closed Bug 781046 Opened 12 years ago Closed 12 years ago

Modify 4rth parameter TypedArray.h function Create() to take a const T* instead of a T*

Categories

(Core :: DOM: Core & HTML, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: bsurender, Assigned: bsurender)

References

Details

Attachments

(1 file, 1 obsolete file)

Change TypedArray::Create(...) parameter 4 from T* data = NULL to a const T* data.
r=me. ;)
Attachment #649893 - Flags: review?(bzbarsky)
Comment on attachment 649893 [details] [diff] [review]
Create() 4rth arg changed to const T* and remaining changes as appropriate.

Review of attachment 649893 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/bindings/TypedArray.h
@@ +63,5 @@
>    {}
>  
>    static inline JSObject*
>    Create(JSContext* cx, nsWrapperCache* creator, uint32_t length,
> +         const T* data) {

We need to keep the = NULL here. The function has a default parameter.
(In reply to Eric Faust from comment #3)
> Comment on attachment 649893 [details] [diff] [review]
> Create() 4rth arg changed to const T* and remaining changes as appropriate.
> 
> Review of attachment 649893 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> ::: dom/bindings/TypedArray.h
> @@ +63,5 @@
> >    {}
> >  
> >    static inline JSObject*
> >    Create(JSContext* cx, nsWrapperCache* creator, uint32_t length,
> > +         const T* data) {
> 
> We need to keep the = NULL here. The function has a default parameter.

ah yep agreed. my bad. deleted the = NULL. :)
Attachment #649893 - Attachment is obsolete: true
Attachment #649893 - Flags: review?(bzbarsky)
Attachment #649905 - Flags: review?(bzbarsky)
Comment on attachment 649905 [details] [diff] [review]
TypedArray.h Create(...) 4rth parameter fix

r=me
Attachment #649905 - Flags: review?(bzbarsky) → review+
Attachment #649905 - Flags: checkin?(bzbarsky)
Whiteboard: checkin-needed
For what it's worth, it would be good to have better checkin comments for patches you want someone else to push (like the actual checkin comment you want).

https://hg.mozilla.org/integration/mozilla-inbound/rev/5556678cfd6c
Flags: in-testsuite-
Whiteboard: checkin-needed
Target Milestone: --- → mozilla17
Attachment #649905 - Flags: checkin?(bzbarsky) → checkin+
https://hg.mozilla.org/mozilla-central/rev/5556678cfd6c
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: