Browse Source

NanNew<Value>() -> NanNew()

v1.x
Rod Vagg 11 years ago
parent
commit
4ab32bccb1
  1. 2
      src/JPEGStream.h

2
src/JPEGStream.h

@ -35,7 +35,7 @@ empty_closure_output_buffer(j_compress_ptr cinfo){
Local<Object> buf = NanNewBufferHandle((char *)dest->buffer, dest->bufsize); Local<Object> buf = NanNewBufferHandle((char *)dest->buffer, dest->bufsize);
Local<Value> argv[3] = { Local<Value> argv[3] = {
NanNull() NanNull()
, NanNew<Value>(buf) , NanNew(buf)
, NanNew<Integer>(dest->bufsize) , NanNew<Integer>(dest->bufsize)
}; };
NanMakeCallback(NanGetCurrentContext()->Global(), dest->closure->fn, 3, argv); NanMakeCallback(NanGetCurrentContext()->Global(), dest->closure->fn, 3, argv);

Loading…
Cancel
Save