mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 781046. Make the Create() functions in TypedArray.h take a const data array, since they make a copy anyway. r=bzbarsky
This commit is contained in:
parent
6d358255e3
commit
e52cb8693b
@ -64,7 +64,7 @@ struct TypedArray : public TypedArray_base<T,UnboxArray> {
|
||||
|
||||
static inline JSObject*
|
||||
Create(JSContext* cx, nsWrapperCache* creator, uint32_t length,
|
||||
T* data = NULL) {
|
||||
const T* data = NULL) {
|
||||
JSObject* creatorWrapper;
|
||||
JSAutoEnterCompartment ac;
|
||||
if (creator && (creatorWrapper = creator->GetWrapperPreserveColor())) {
|
||||
|
Loading…
Reference in New Issue
Block a user